projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bdfef5
)
[videomega] Add shortcut to _VALID_URL
author
Sergey M․
<dstftw@gmail.com>
Fri, 17 Jul 2015 22:27:09 +0000
(
04:27
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 17 Jul 2015 22:27:09 +0000
(
04:27
+0600)
youtube_dl/extractor/videomega.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/videomega.py
b/youtube_dl/extractor/videomega.py
index b2ef637facded6a22da7c38bdbbc42131e4d05c4..78ff6310a07f6864abda658ca1e804e26594460b 100644
(file)
--- a/
youtube_dl/extractor/videomega.py
+++ b/
youtube_dl/extractor/videomega.py
@@
-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',