1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[thescene] Fix extraction (closes #12235)

This commit is contained in:
Thomas Christlieb 2017-02-24 15:08:45 +01:00 committed by Sergey M
parent 68f17a9c2d
commit 51ed496307

View file

@ -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 {