aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-07-20 22:41:13 +0700
committerSergey M․ <dstftw@gmail.com>2016-07-20 22:41:13 +0700
commit84e8cca48bdb2cda290f458e31b34a677eb260ae (patch)
tree919be373509094c524a00497b5f95c3015cd5e44
parent790b06b7d4490e1e54659fafb71167bc459c701c (diff)
downloadyoutube-dl-84e8cca48bdb2cda290f458e31b34a677eb260ae.tar.xz
[youjizz] Relax _VALID_URL (Closes #10131)
-rw-r--r--youtube_dl/extractor/youjizz.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/youjizz.py b/youtube_dl/extractor/youjizz.py
index 4150b28da..31e2f9263 100644
--- a/youtube_dl/extractor/youjizz.py
+++ b/youtube_dl/extractor/youjizz.py
@@ -9,8 +9,8 @@ from ..utils import (
class YouJizzIE(InfoExtractor):
- _VALID_URL = r'https?://(?:\w+\.)?youjizz\.com/videos/[^/#?]+-(?P<id>[0-9]+)\.html(?:$|[?#])'
- _TEST = {
+ _VALID_URL = r'https?://(?:\w+\.)?youjizz\.com/videos/(?:[^/#?]+)?-(?P<id>[0-9]+)\.html(?:$|[?#])'
+ _TESTS = [{
'url': 'http://www.youjizz.com/videos/zeichentrick-1-2189178.html',
'md5': '07e15fa469ba384c7693fd246905547c',
'info_dict': {
@@ -19,7 +19,10 @@ class YouJizzIE(InfoExtractor):
'title': 'Zeichentrick 1',
'age_limit': 18,
}
- }
+ }, {
+ 'url': 'http://www.youjizz.com/videos/-2189178.html',
+ 'only_matching': True,
+ }]
def _real_extract(self, url):
video_id = self._match_id(url)