[youjizz] Don't make the url protocol optional (fixes #3722)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 11 Sep 2014 19:44:02 +0000 (21:44 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 11 Sep 2014 19:44:02 +0000 (21:44 +0200)
It would fail to download the webpag if it's missing.
And the generic extractor will add it.

youtube_dl/extractor/youjizz.py

index fcb5ff758deae198614e821dc132871e5fb90679..b86331e3cfa39ec8d3f287e829900b414892beee 100644 (file)
@@ -9,7 +9,7 @@ from ..utils import (
 
 
 class YouJizzIE(InfoExtractor):
-    _VALID_URL = r'^(?:https?://)?(?:\w+\.)?youjizz\.com/videos/(?P<videoid>[^.]+)\.html$'
+    _VALID_URL = r'^https?://(?:\w+\.)?youjizz\.com/videos/(?P<videoid>[^.]+)\.html$'
     _TEST = {
         'url': 'http://www.youjizz.com/videos/zeichentrick-1-2189178.html',
         'file': '2189178.flv',