aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/itv.py
diff options
context:
space:
mode:
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 = []