Browse Source

[openload] Relax _VALID_URL

[openload] added to _TESTS, removed escape
N1k145 9 years ago
parent
commit
21efee5f8b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      youtube_dl/extractor/openload.py

+ 4 - 1
youtube_dl/extractor/openload.py

@@ -14,7 +14,7 @@ from ..utils import (
 
 
 
 
 class OpenloadIE(InfoExtractor):
 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 = [{
     _TESTS = [{
         'url': 'https://openload.co/f/kUEfGclsU9o',
         'url': 'https://openload.co/f/kUEfGclsU9o',
@@ -31,6 +31,9 @@ class OpenloadIE(InfoExtractor):
     }, {
     }, {
         'url': 'https://openload.io/f/ZAn6oz-VZGE/',
         'url': 'https://openload.io/f/ZAn6oz-VZGE/',
         'only_matching': True,
         'only_matching': True,
+    }, {
+        'url': 'https://openload.co/f/_-ztPaZtMhM/',
+        'only_matching': True,
     }, {
     }, {
         # unavailable via https://openload.co/f/Sxz5sADo82g/, different layout
         # unavailable via https://openload.co/f/Sxz5sADo82g/, different layout
         # for title and ext
         # for title and ext