mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-01 15:40:15 +00:00
[thescene] Fix extraction (closes #12235)
This commit is contained in:
parent
68f17a9c2d
commit
51ed496307
@ -32,7 +32,7 @@ def _real_extract(self, url):
|
|||||||
player = self._download_webpage(player_url, display_id)
|
player = self._download_webpage(player_url, display_id)
|
||||||
info = self._parse_json(
|
info = self._parse_json(
|
||||||
self._search_regex(
|
self._search_regex(
|
||||||
r'(?m)var\s+video\s+=\s+({.+?});$', player, 'info json'),
|
r'(?m)video\s*:\s*({.+?}),$', player, 'info json'),
|
||||||
display_id)
|
display_id)
|
||||||
|
|
||||||
qualities_order = qualities(('low', 'high'))
|
qualities_order = qualities(('low', 'high'))
|
||||||
@ -40,7 +40,7 @@ def _real_extract(self, url):
|
|||||||
'format_id': '{0}-{1}'.format(f['type'].split('/')[0], f['quality']),
|
'format_id': '{0}-{1}'.format(f['type'].split('/')[0], f['quality']),
|
||||||
'url': f['src'],
|
'url': f['src'],
|
||||||
'quality': qualities_order(f['quality']),
|
'quality': qualities_order(f['quality']),
|
||||||
} for f in info['sources'][0]]
|
} for f in info['sources']]
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
Loading…
Reference in New Issue
Block a user