From b01862992f282335506f00fccc9b7255544ce57e Mon Sep 17 00:00:00 2001 From: BohwaZ Date: Mon, 4 Sep 2017 10:02:46 +1200 Subject: [PATCH] Use multi_video instead of playlist --- youtube_dl/extractor/nzonscreen.py | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/youtube_dl/extractor/nzonscreen.py b/youtube_dl/extractor/nzonscreen.py index c18d4952e..2ecf184f9 100644 --- a/youtube_dl/extractor/nzonscreen.py +++ b/youtube_dl/extractor/nzonscreen.py @@ -13,12 +13,11 @@ class NZOnScreenIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?nzonscreen\.com/title/(?P[^/]+)' _TEST = { 'url': 'https://www.nzonscreen.com/title/watermark-2001', - 'md5': '7743cb2c319c27357bc75dd8bcde5d11', + 'md5': '9d8885fb0d8aeae80a15e7191e54230a', 'info_dict': { 'id': 'watermark-2001', 'ext': 'm4v', 'title': 'Watermark', - 'description': 'md5:c654662c3985fb0cef75812fbb378174', } } @@ -26,7 +25,6 @@ class NZOnScreenIE(InfoExtractor): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) - # TODO more code goes here, for example ... title = self._html_search_regex(r'

(.+?)

', webpage, 'title') main_clip = self._html_search_regex(r'data-video-config=\'(.+?)\'', @@ -34,7 +32,7 @@ class NZOnScreenIE(InfoExtractor): main_clip = json.loads(main_clip) clips = self._html_search_regex(r'