From fe69f52e5c3f8af7b3f23b2384a2c836e7e62f22 Mon Sep 17 00:00:00 2001 From: std-move <26625259+std-move@users.noreply.github.com> Date: Wed, 15 Dec 2021 20:55:11 +0100 Subject: [PATCH] [NovaEmbed] update player regex (#2008) Authored by: std-move --- yt_dlp/extractor/nova.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/nova.py b/yt_dlp/extractor/nova.py index bb8f6dbf7..00a64f88d 100644 --- a/yt_dlp/extractor/nova.py +++ b/yt_dlp/extractor/nova.py @@ -54,7 +54,7 @@ def _real_extract(self, url): player = self._parse_json( self._search_regex( - (r'(?:replacePlaceholders.*?:\s*)?replacePlaceholders\s*\(\s*(?P{.*})\s*\)(?:\s*\))?\s*,', + (r'(?:(?:replacePlaceholders|processAdTagModifier).*?:\s*)?(?:replacePlaceholders|processAdTagModifier)\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: