do not match series pages

fix _download_json message
This commit is contained in:
grqx_termux 2024-10-04 21:31:16 +13:00
parent 21a35b5264
commit 5b1a168cea

View File

@ -9,7 +9,7 @@
class NZOnScreenIE(InfoExtractor):
_VALID_URL = r'https?://www\.nzonscreen\.com/title/(?P<id>[^/?#]+)'
_VALID_URL = r'https?://www\.nzonscreen\.com/title/(?P<id>[^/?#]+)/?(?!series)'
_TESTS = [{
'url': 'https://www.nzonscreen.com/title/shoop-shoop-diddy-wop-cumma-cumma-wang-dang-1982',
'info_dict': {
@ -121,7 +121,7 @@ def _real_extract(self, url):
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: