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

index dd665874d5e01cd7e6c6e6d7dc69e06748952727..8e6ec23442b33421bfcc1ae4514c5da776b0326d 100644 (file)
@@ -7,7 +7,7 @@ class NowVideoIE(NovaMovIE):
     IE_NAME = 'nowvideo'
     IE_DESC = 'NowVideo'
 
-    _VALID_URL = r'http://(?:(?:www\.)?%(host)s/video/|(?:(?:embed|www)\.)%(host)s/embed\.php\?(?:.*?&)?v=)(?P<videoid>[a-z\d]{13})' % {'host': 'nowvideo\.(?:ch|sx|eu)'}
+    _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'nowvideo\.(?:ch|sx|eu)'}
 
     _HOST = 'www.nowvideo.ch'