mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-18 07:05:41 +07:00
[extractor,cleanup] Use _search_nextjs_data
This commit is contained in:
@@ -243,8 +243,8 @@ def _real_extract(self, url):
|
||||
|
||||
webpage = self._download_webpage(url, playlist_id)
|
||||
|
||||
json_map = try_get(self._parse_json(self._html_search_regex(
|
||||
'(?s)<script[^>]+id=[\'"]__NEXT_DATA__[^>]*>([^<]+)</script>', webpage, 'json_map'), playlist_id),
|
||||
json_map = try_get(
|
||||
self._search_nextjs_data(webpage, playlist_id),
|
||||
lambda x: x['props']['pageProps']['article']['body']['content']) or []
|
||||
|
||||
entries = []
|
||||
|
||||
Reference in New Issue
Block a user