aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/clubic.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-14 03:35:15 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-14 03:35:15 +0600
commite2ff3df314c7e710d429ca311b2a22839d4aa3f9 (patch)
treefbc1fe8f4f1ed436608979c88b02f2c9cfeee221 /youtube_dl/extractor/clubic.py
parent31208a07c247f5b8f1f0fc26da1d477f7440e513 (diff)
downloadyoutube-dl-e2ff3df314c7e710d429ca311b2a22839d4aa3f9.tar.xz
[clubic] Relax _VALID_URL (Closes #6854)
Diffstat (limited to 'youtube_dl/extractor/clubic.py')
-rw-r--r--youtube_dl/extractor/clubic.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/clubic.py b/youtube_dl/extractor/clubic.py
index 14f215c5c..1dfa7c12e 100644
--- a/youtube_dl/extractor/clubic.py
+++ b/youtube_dl/extractor/clubic.py
@@ -12,9 +12,9 @@ from ..utils import (
class ClubicIE(InfoExtractor):
- _VALID_URL = r'http://(?:www\.)?clubic\.com/video/[^/]+/video.*-(?P<id>[0-9]+)\.html'
+ _VALID_URL = r'http://(?:www\.)?clubic\.com/video/(?:[^/]+/)*video.*-(?P<id>[0-9]+)\.html'
- _TEST = {
+ _TESTS = [{
'url': 'http://www.clubic.com/video/clubic-week/video-clubic-week-2-0-le-fbi-se-lance-dans-la-photo-d-identite-448474.html',
'md5': '1592b694ba586036efac1776b0b43cd3',
'info_dict': {
@@ -24,7 +24,10 @@ class ClubicIE(InfoExtractor):
'description': 're:Gueule de bois chez Nokia. Le constructeur a indiqué cette.*',
'thumbnail': 're:^http://img\.clubic\.com/.*\.jpg$',
}
- }
+ }, {
+ 'url': 'http://www.clubic.com/video/video-clubic-week-2-0-apple-iphone-6s-et-plus-mais-surtout-le-pencil-469792.html',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
mobj = re.match(self._VALID_URL, url)