From 135dfa2c7ebc9284db940713c0dc6cbc19ca5fa4 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Thu, 20 Jan 2022 03:25:15 +0530 Subject: [extractor,cleanup] Use `_search_nextjs_data` --- yt_dlp/extractor/novaplay.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'yt_dlp/extractor/novaplay.py') diff --git a/yt_dlp/extractor/novaplay.py b/yt_dlp/extractor/novaplay.py index 724986a06..bfb2c8751 100644 --- a/yt_dlp/extractor/novaplay.py +++ b/yt_dlp/extractor/novaplay.py @@ -41,9 +41,7 @@ class NovaPlayIE(InfoExtractor): def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - video_props = self._parse_json(self._search_regex( - r'({.+})', - webpage, 'video_props'), video_id)['props']['pageProps']['video'] + video_props = self._search_nextjs_data(webpage, video_id)['props']['pageProps']['video'] m3u8_url = self._download_json( f'https://nbg-api.fite.tv/api/v2/videos/{video_id}/streams', video_id, headers={'x-flipps-user-agent': 'Flipps/75/9.7'})[0]['url'] -- cgit v1.2.3