mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-20 13:57:25 +01:00
do not match series pages
fix _download_json message
This commit is contained in:
parent
21a35b5264
commit
5b1a168cea
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user