]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[hypestat] Match URLs with www. and https://
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 18 Sep 2014 16:56:02 +0000 (18:56 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 18 Sep 2014 16:56:02 +0000 (18:56 +0200)
youtube_dl/extractor/hypestat.py

index 8b8db30ae63beb8d2127d298cd2e152895e293ee..e1a14226882939adb503e2d9326807310ff41fad 100644 (file)
@@ -13,7 +13,7 @@ from ..utils import (
 
 class HypestatIE(InfoExtractor):
     IE_DESC = 'allmyvideos.net and vidspot.net'
-    _VALID_URL = r'https?://(?:allmyvideos|vidspot)\.net/(?P<id>[a-zA-Z0-9_-]+)'
+    _VALID_URL = r'https?://(?:www\.)?(?:allmyvideos|vidspot)\.net/(?P<id>[a-zA-Z0-9_-]+)'
 
     _TESTS = [{
         'url': 'http://allmyvideos.net/jih3nce3x6wn',
@@ -31,6 +31,9 @@ class HypestatIE(InfoExtractor):
             'ext': 'mp4',
             'title': 'youtube-dl test video',
         },
+    }, {
+        'url': 'https://www.vidspot.net/l2ngsmhs8ci5',
+        'only_matching': True,
     }]
 
     def _real_extract(self, url):