]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[openload] Relax _VALID_URL
authorN1k145 <N1k145@users.noreply.github.com>
Thu, 9 Jun 2016 10:13:15 +0000 (12:13 +0200)
committerSergey M․ <dstftw@gmail.com>
Thu, 9 Jun 2016 13:46:54 +0000 (20:46 +0700)
[openload] added to _TESTS, removed escape

youtube_dl/extractor/openload.py

index 1b57462b5072c36c2d6bd52c93146a78e1eb4ec2..6415b8fdcb7451e6b499d1d4d3515af2775c66c2 100644 (file)
@@ -14,7 +14,7 @@ from ..utils import (
 
 
 class OpenloadIE(InfoExtractor):
-    _VALID_URL = r'https://openload.(?:co|io)/(?:f|embed)/(?P<id>[a-zA-Z0-9-]+)'
+    _VALID_URL = r'https://openload.(?:co|io)/(?:f|embed)/(?P<id>[a-zA-Z0-9-_]+)'
 
     _TESTS = [{
         'url': 'https://openload.co/f/kUEfGclsU9o',
@@ -31,6 +31,9 @@ class OpenloadIE(InfoExtractor):
     }, {
         'url': 'https://openload.io/f/ZAn6oz-VZGE/',
         'only_matching': True,
+    }, {
+        'url': 'https://openload.co/f/_-ztPaZtMhM/',
+        'only_matching': True,
     }, {
         # unavailable via https://openload.co/f/Sxz5sADo82g/, different layout
         # for title and ext