From 3c2208f82da2b252df64205c19e30e8c6ea6b6cc Mon Sep 17 00:00:00 2001 From: std-move <26625259+std-move@users.noreply.github.com> Date: Sat, 27 Nov 2021 20:29:06 +0100 Subject: [PATCH] [NovaEmbed] Fix extractor (#1814) Authored by: std-move --- yt_dlp/extractor/nova.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/nova.py b/yt_dlp/extractor/nova.py index 0007b6b12a..bb8f6dbf76 100644 --- a/yt_dlp/extractor/nova.py +++ b/yt_dlp/extractor/nova.py @@ -54,7 +54,8 @@ class NovaEmbedIE(InfoExtractor): player = self._parse_json( self._search_regex( - r'Player\.init\s*\([^,]+,(?P\s*\w+\s*\?)?\s*(?P{(?(cndn).+?|.+)})\s*(?(cndn):|,\s*{.+?}\s*\)\s*;)', + (r'(?:replacePlaceholders.*?:\s*)?replacePlaceholders\s*\(\s*(?P{.*})\s*\)(?:\s*\))?\s*,', + r'Player\.init\s*\([^,]+,(?P\s*\w+\s*\?)?\s*(?P{(?(cndn).+?|.+)})\s*(?(cndn):|,\s*{.+?}\s*\)\s*;)'), webpage, 'player', default='{}', group='json'), video_id, fatal=False) if player: for format_id, format_list in player['tracks'].items():