about summary refs log tree commit diff
path: root/youtube_dl/extractor/clipsyndicate.py
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-07-08 13:40:21 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-07-08 13:40:21 +0800
commitcbc1fadd6f544619b711209b68ea15a912ca0fa1 (patch)
treee6769dfd961af32ade15a8f9b99f63b1f992db06 /youtube_dl/extractor/clipsyndicate.py
parent4dd09c9addeaccad6ad6d33f01d6240f3594fc84 (diff)
downloadyoutube-dl-cbc1fadd6f544619b711209b68ea15a912ca0fa1.tar.gz
youtube-dl-cbc1fadd6f544619b711209b68ea15a912ca0fa1.tar.xz
youtube-dl-cbc1fadd6f544619b711209b68ea15a912ca0fa1.zip
[clipsyndicate] Support chic subdomain (fixes #6176)
Diffstat (limited to 'youtube_dl/extractor/clipsyndicate.py')
-rw-r--r--youtube_dl/extractor/clipsyndicate.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/clipsyndicate.py b/youtube_dl/extractor/clipsyndicate.py
index d07d544ea..b1e45a677 100644
--- a/youtube_dl/extractor/clipsyndicate.py
+++ b/youtube_dl/extractor/clipsyndicate.py
@@ -10,9 +10,9 @@ from ..utils import (
 
 
 class ClipsyndicateIE(InfoExtractor):
-    _VALID_URL = r'http://www\.clipsyndicate\.com/video/play(list/\d+)?/(?P<id>\d+)'
+    _VALID_URL = r'http://(?:chic|www)\.clipsyndicate\.com/video/play(list/\d+)?/(?P<id>\d+)'
 
-    _TEST = {
+    _TESTS = [{
         'url': 'http://www.clipsyndicate.com/video/play/4629301/brick_briscoe',
         'md5': '4d7d549451bad625e0ff3d7bd56d776c',
         'info_dict': {
@@ -22,7 +22,10 @@ class ClipsyndicateIE(InfoExtractor):
             'duration': 612,
             'thumbnail': 're:^https?://.+\.jpg',
         },
-    }
+    }, {
+        'url': 'http://chic.clipsyndicate.com/video/play/5844117/shark_attack',
+        'only_matching': True,
+    }]
 
     def _real_extract(self, url):
         mobj = re.match(self._VALID_URL, url)