From 5b1a168ceab1af74b831a8396bff40bb1b6b4e7a Mon Sep 17 00:00:00 2001 From: grqx_termux Date: Fri, 4 Oct 2024 21:31:16 +1300 Subject: [PATCH] do not match series pages fix _download_json message --- yt_dlp/extractor/nzonscreen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/extractor/nzonscreen.py b/yt_dlp/extractor/nzonscreen.py index efa4415bf6..0c019f79a5 100644 --- a/yt_dlp/extractor/nzonscreen.py +++ b/yt_dlp/extractor/nzonscreen.py @@ -9,7 +9,7 @@ from ..utils import ( class NZOnScreenIE(InfoExtractor): - _VALID_URL = r'https?://www\.nzonscreen\.com/title/(?P[^/?#]+)' + _VALID_URL = r'https?://www\.nzonscreen\.com/title/(?P[^/?#]+)/?(?!series)' _TESTS = [{ 'url': 'https://www.nzonscreen.com/title/shoop-shoop-diddy-wop-cumma-cumma-wang-dang-1982', 'info_dict': { @@ -121,7 +121,7 @@ class NZOnScreenIE(InfoExtractor): self._html_extract_title(webpage, default=None) or self._og_search_title(webpage)).rsplit('|', 2)[0]) playlist = self._download_json( - f'https://www.nzonscreen.com/html5/video_data/{video_id}', video_id, 'media data') + f'https://www.nzonscreen.com/html5/video_data/{video_id}', video_id, 'downloading media data') # TODO: extract subtitles if len(playlist) == 1: