summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-02-07 15:42:31 +0100
committerPhilipp Hagemeister <[email protected]>2014-02-07 15:42:31 +0100
commit8bc6c8e3c0dc9c7840026263e1dc720d6521cdde (patch)
tree9dde10d0d460e80a256fa17286e52c9974e56d33
parent79bc27b53ab57da4a3067972283be3baddde1725 (diff)
downloadyoutube-dl-8bc6c8e3c0dc9c7840026263e1dc720d6521cdde.tar.gz
youtube-dl-8bc6c8e3c0dc9c7840026263e1dc720d6521cdde.zip
[chilloutzone] Add additional tests (#2340)
-rw-r--r--youtube_dl/extractor/chilloutzone.py29
1 files changed, 27 insertions, 2 deletions
diff --git a/youtube_dl/extractor/chilloutzone.py b/youtube_dl/extractor/chilloutzone.py
index b73758115..524f06d7a 100644
--- a/youtube_dl/extractor/chilloutzone.py
+++ b/youtube_dl/extractor/chilloutzone.py
@@ -13,7 +13,7 @@ from ..utils import (
class ChilloutzoneIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?chilloutzone\.net/video/(?P<id>[\w|-]+)\.html'
- _TEST = {
+ _TESTS = [{
'url': 'http://www.chilloutzone.net/video/enemene-meck-alle-katzen-weg.html',
'md5': 'a76f3457e813ea0037e5244f509e66d1',
'info_dict': {
@@ -22,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:3e5e8e839f076a637c6b9406c8f25c4c',
+ 'uploader': 'Us',
+ 'uploader_id': 'usfilms',
+ 'upload_date': '20140131'
+ },
+ }]
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)