diff options
author | Thomas Christlieb <[email protected]> | 2017-02-24 15:08:45 +0100 |
---|---|---|
committer | Sergey M <[email protected]> | 2017-02-24 22:08:45 +0800 |
commit | 51ed496307a8a98134f25e8128c317663ccd4355 (patch) | |
tree | 9d7ff8b8acdcc0e7d1560dd4bac1f736dc2ac03b /youtube_dl | |
parent | 68f17a9c2df07828d364421e59ede26981aa7756 (diff) | |
download | youtube-dl-51ed496307a8a98134f25e8128c317663ccd4355.tar.gz youtube-dl-51ed496307a8a98134f25e8128c317663ccd4355.zip |
[thescene] Fix extraction (closes #12235)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/thescene.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/thescene.py b/youtube_dl/extractor/thescene.py index ce1326c03..6c16d66ed 100644 --- a/youtube_dl/extractor/thescene.py +++ b/youtube_dl/extractor/thescene.py @@ -32,7 +32,7 @@ class TheSceneIE(InfoExtractor): player = self._download_webpage(player_url, display_id) info = self._parse_json( self._search_regex( - r'(?m)var\s+video\s+=\s+({.+?});$', player, 'info json'), + r'(?m)video\s*:\s*({.+?}),$', player, 'info json'), display_id) qualities_order = qualities(('low', 'high')) @@ -40,7 +40,7 @@ class TheSceneIE(InfoExtractor): 'format_id': '{0}-{1}'.format(f['type'].split('/')[0], f['quality']), 'url': f['src'], 'quality': qualities_order(f['quality']), - } for f in info['sources'][0]] + } for f in info['sources']] self._sort_formats(formats) return { |