aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/telemundo.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/telemundo.py')
-rw-r--r--yt_dlp/extractor/telemundo.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/yt_dlp/extractor/telemundo.py b/yt_dlp/extractor/telemundo.py
index e326bbdd5..ebcecf55f 100644
--- a/yt_dlp/extractor/telemundo.py
+++ b/yt_dlp/extractor/telemundo.py
@@ -34,8 +34,7 @@ class TelemundoIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
webpage = self._download_webpage(url, video_id)
- metadata = self._parse_json(
- self._search_regex(r'<[^>]+id="__NEXT_DATA__"[^>]+>([^<]+)', webpage, 'JSON metadata'), video_id)
+ metadata = self._search_nextjs_data(webpage, video_id)
redirect_url = try_get(
metadata,
lambda x: x['props']['initialState']['video']['associatedPlaylists'][0]['videos'][0]['videoAssets'][0]['publicUrl'])