X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fchilloutzone.py;h=02d5ba52713f27412f85989749fde91970e48e36;hb=85e787f51d914c82309045fc87c1ac6bd6540023;hp=39e9d962fcc85cd0273f4a2b9c07c64c40894982;hpb=4a9540b6d23ce247e13d74ce1f16f0aed238e08b;p=youtube-dl diff --git a/youtube_dl/extractor/chilloutzone.py b/youtube_dl/extractor/chilloutzone.py index 39e9d962f..02d5ba527 100644 --- a/youtube_dl/extractor/chilloutzone.py +++ b/youtube_dl/extractor/chilloutzone.py @@ -5,12 +5,15 @@ import base64 import json from .common import InfoExtractor -from ..utils import clean_html +from ..utils import ( + clean_html, + ExtractorError +) class ChilloutzoneIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?chilloutzone\.net/video/(?P[\w|-]+)\.html' - _TEST = { + _TESTS = [{ 'url': 'http://www.chilloutzone.net/video/enemene-meck-alle-katzen-weg.html', 'md5': 'a76f3457e813ea0037e5244f509e66d1', 'info_dict': { @@ -19,7 +22,32 @@ class ChilloutzoneIE(InfoExtractor): 'title': 'Enemene Meck - Alle Katzen weg', 'description': 'Ist das der Umkehrschluss des Niesenden Panda-Babys?', }, - } + }, { + 'note': 'Video hosted at YouTube', + 'url': 'http://www.chilloutzone.net/video/eine-sekunde-bevor.html', + 'info_dict': { + 'id': '1YVQaAgHyRU', + 'ext': 'mp4', + 'title': '16 Photos Taken 1 Second Before Disaster', + 'description': 'md5:58a8fcf6a459fe0a08f54140f0ad1814', + 'uploader': 'BuzzFeedVideo', + 'uploader_id': 'BuzzFeedVideo', + 'upload_date': '20131105', + }, + }, { + 'note': 'Video hosted at Vimeo', + 'url': 'http://www.chilloutzone.net/video/icon-blending.html', + 'md5': '2645c678b8dc4fefcc0e1b60db18dac1', + 'info_dict': { + 'id': '85523671', + 'ext': 'mp4', + 'title': 'The Sunday Times - Icons', + 'description': 'md5:3e1c0dc6047498d6728dcdaad0891762', + 'uploader': 'Us', + 'uploader_id': 'usfilms', + 'upload_date': '20140131' + }, + }] def _real_extract(self, url): mobj = re.match(self._VALID_URL, url) @@ -52,7 +80,7 @@ class ChilloutzoneIE(InfoExtractor): # the own CDN if source_priority == 'native': if native_platform == 'youtube': - return self.url_result(video_id, ie='Youtube') + return self.url_result(native_video_id, ie='Youtube') if native_platform == 'vimeo': return self.url_result( 'http://vimeo.com/' + native_video_id, ie='Vimeo')