commit 21efee5f8bc8daf0cbb5fc3408a1fc5b9d5eadcb
parent e2713d32f49f1bfa830cc755a96691c39da88290
Author: N1k145 <N1k145@users.noreply.github.com>
Date: Thu, 9 Jun 2016 12:13:15 +0200
[openload] Relax _VALID_URL
[openload] added to _TESTS, removed escape
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/openload.py b/youtube_dl/extractor/openload.py
@@ -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',
@@ -32,6 +32,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
'url': 'https://openload.co/embed/Sxz5sADo82g/',