projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e68d3a0
)
[mailru] Extend _VALID_URL (Closes #8990)
author
Sergey M․
<dstftw@gmail.com>
Sat, 26 Mar 2016 13:15:32 +0000
(19:15 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 26 Mar 2016 13:15:32 +0000
(19:15 +0600)
youtube_dl/extractor/mailru.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mailru.py
b/youtube_dl/extractor/mailru.py
index 46eb004925b88459b2c4859790aa06059a3b61a6..9a7098c43c600a3cc3ed697252bc784d9a9cf5b7 100644
(file)
--- a/
youtube_dl/extractor/mailru.py
+++ b/
youtube_dl/extractor/mailru.py
@@
-13,7
+13,7
@@
from ..utils import (
class MailRuIE(InfoExtractor):
IE_NAME = 'mailru'
IE_DESC = 'Видео@Mail.Ru'
class MailRuIE(InfoExtractor):
IE_NAME = 'mailru'
IE_DESC = 'Видео@Mail.Ru'
- _VALID_URL = r'https?://(?:
www
\.)?my\.mail\.ru/(?:video/.*#video=/?(?P<idv1>(?:[^/]+/){3}\d+)|(?:(?P<idv2prefix>(?:[^/]+/){2})video/(?P<idv2suffix>[^/]+/\d+))\.html)'
+ _VALID_URL = r'https?://(?:
(?:www|m)
\.)?my\.mail\.ru/(?:video/.*#video=/?(?P<idv1>(?:[^/]+/){3}\d+)|(?:(?P<idv2prefix>(?:[^/]+/){2})video/(?P<idv2suffix>[^/]+/\d+))\.html)'
_TESTS = [
{
_TESTS = [
{
@@
-61,6
+61,10
@@
class MailRuIE(InfoExtractor):
'duration': 6001,
},
'skip': 'Not accessible from Travis CI server',
'duration': 6001,
},
'skip': 'Not accessible from Travis CI server',
+ },
+ {
+ 'url': 'http://m.my.mail.ru/mail/3sktvtr/video/_myvideo/138.html',
+ 'only_matching': True,
}
]
}
]