aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/itv.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-20 03:25:15 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-20 04:38:24 +0530
commit135dfa2c7ebc9284db940713c0dc6cbc19ca5fa4 (patch)
treea555a6c1d7d2d053c2c31b19c55eb8c2ef602a04 /yt_dlp/extractor/itv.py
parente0585e6562bc467a17c9fef7b48b83c6f0f83652 (diff)
downloadhypervideo-pre-135dfa2c7ebc9284db940713c0dc6cbc19ca5fa4.tar.lz
hypervideo-pre-135dfa2c7ebc9284db940713c0dc6cbc19ca5fa4.tar.xz
hypervideo-pre-135dfa2c7ebc9284db940713c0dc6cbc19ca5fa4.zip
[extractor,cleanup] Use `_search_nextjs_data`
Diffstat (limited to 'yt_dlp/extractor/itv.py')
-rw-r--r--yt_dlp/extractor/itv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/itv.py b/yt_dlp/extractor/itv.py
index bdd6af688..f1591403f 100644
--- a/yt_dlp/extractor/itv.py
+++ b/yt_dlp/extractor/itv.py
@@ -243,8 +243,8 @@ class ITVBTCCIE(InfoExtractor):
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 = []