[Nova] fix extractor (#807)

Fixes: https://github.com/ytdl-org/youtube-dl/issues/27840
Authored by: std-move
pull/810/head
std-move 3 years ago committed by GitHub
parent 58f68fe703
commit 2fc14b9925
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,7 +39,7 @@ class NovaEmbedIE(InfoExtractor):
player = self._parse_json(
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)
if player:
for format_id, format_list in player['tracks'].items():

Loading…
Cancel
Save