mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-15 07:42:42 +00:00
[Nova] fix extractor (#807)
Fixes: https://github.com/ytdl-org/youtube-dl/issues/27840 Authored by: std-move
This commit is contained in:
parent
58f68fe703
commit
2fc14b9925
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ class NovaEmbedIE(InfoExtractor):
|
||||||
|
|
||||||
player = self._parse_json(
|
player = self._parse_json(
|
||||||
self._search_regex(
|
self._search_regex(
|
||||||
r'Player\.init\s*\([^,]+,\s*({.+?})\s*,\s*{.+?}\s*\)\s*;',
|
r'Player\.init\s*\([^,]+,\s*(?:\w+\s*\?\s*{.+?}\s*:\s*)?({.+})\s*,\s*{.+?}\s*\)\s*;',
|
||||||
webpage, 'player', default='{}'), video_id, fatal=False)
|
webpage, 'player', default='{}'), video_id, fatal=False)
|
||||||
if player:
|
if player:
|
||||||
for format_id, format_list in player['tracks'].items():
|
for format_id, format_list in player['tracks'].items():
|
||||||
|
|
Loading…
Reference in a new issue