]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[videomega] Add shortcut to _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Fri, 17 Jul 2015 22:27:09 +0000 (04:27 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 17 Jul 2015 22:27:09 +0000 (04:27 +0600)
youtube_dl/extractor/videomega.py

index b2ef637facded6a22da7c38bdbbc42131e4d05c4..78ff6310a07f6864abda658ca1e804e26594460b 100644 (file)
@@ -8,7 +8,7 @@ from ..compat import compat_urllib_request
 
 
 class VideoMegaIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?videomega\.tv/(?:(?:view|iframe|cdn)\.php)?\?ref=(?P<id>[A-Za-z0-9]+)'
+    _VALID_URL = r'(?:videomega:|https?://(?:www\.)?videomega\.tv/(?:(?:view|iframe|cdn)\.php)?\?ref=)(?P<id>[A-Za-z0-9]+)'
     _TESTS = [{
         'url': 'http://videomega.tv/cdn.php?ref=AOSQBJYKIDDIKYJBQSOA',
         'md5': 'cc1920a58add3f05c6a93285b84fb3aa',