diff options
author | Sergey M․ <dstftw@gmail.com> | 2014-04-05 15:34:54 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2014-04-05 15:34:54 +0700 |
commit | 60ccc59a1c5d8e6976ff2496f223a54ffb687d57 (patch) | |
tree | 4bf40e8697adf2da85fb0c628d627a04781647a9 /youtube_dl | |
parent | 91745595d355711194ad57da8630b28ebe011da8 (diff) |
[novamov] Improve _VALID_URL
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/novamov.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/novamov.py b/youtube_dl/extractor/novamov.py index fd310e219..dde9bea69 100644 --- a/youtube_dl/extractor/novamov.py +++ b/youtube_dl/extractor/novamov.py @@ -13,7 +13,8 @@ class NovaMovIE(InfoExtractor): IE_NAME = 'novamov' IE_DESC = 'NovaMov' - _VALID_URL = r'http://(?:(?:www\.)?%(host)s/video/|(?:(?:embed|www)\.)%(host)s/embed\.php\?(?:.*?&)?v=)(?P<videoid>[a-z\d]{13})' % {'host': 'novamov\.com'} + _VALID_URL_TEMPLATE = r'http://(?:(?:www\.)?%(host)s/(?:file|video)/|(?:(?:embed|www)\.)%(host)s/embed\.php\?(?:.*?&)?v=)(?P<videoid>[a-z\d]{13})' + _VALID_URL = _VALID_URL_TEMPLATE % {'host': 'novamov\.com'} _HOST = 'www.novamov.com' |