projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4dd09c9
)
[clipsyndicate] Support chic subdomain (fixes #6176)
author
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 8 Jul 2015 05:40:21 +0000
(13:40 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Wed, 8 Jul 2015 05:40:21 +0000
(13:40 +0800)
youtube_dl/extractor/clipsyndicate.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/clipsyndicate.py
b/youtube_dl/extractor/clipsyndicate.py
index d07d544eaf7742bb782a8b367a09561f14c44a4e..b1e45a677e5fac92d9549c8c204b37b0c059874f 100644
(file)
--- a/
youtube_dl/extractor/clipsyndicate.py
+++ b/
youtube_dl/extractor/clipsyndicate.py
@@
-10,9
+10,9
@@
from ..utils import (
class ClipsyndicateIE(InfoExtractor):
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
=
{
+ _TEST
S = [
{
'url': 'http://www.clipsyndicate.com/video/play/4629301/brick_briscoe',
'md5': '4d7d549451bad625e0ff3d7bd56d776c',
'info_dict': {
'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',
},
'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)
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)