mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-27 21:59:17 +01:00
do not match series pages
fix _download_json message
This commit is contained in:
parent
21a35b5264
commit
5b1a168cea
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ from ..utils import (
|
|||
|
||||
|
||||
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 @@ 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:
|
||||
|
|
Loading…
Reference in a new issue