[novamov] Improve _VALID_URL
authorSergey M․ <dstftw@gmail.com>
Sat, 5 Apr 2014 08:34:54 +0000 (15:34 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 5 Apr 2014 08:34:54 +0000 (15:34 +0700)
youtube_dl/extractor/novamov.py

index fd310e219c1eff92eea30ae7800afb8122df78af..dde9bea693b080fd086defa7462766898982849b 100644 (file)
@@ -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'