[nowvideo] Support more domains
authorSergey M․ <dstftw@gmail.com>
Sat, 5 Apr 2014 09:38:57 +0000 (16:38 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 5 Apr 2014 09:38:57 +0000 (16:38 +0700)
youtube_dl/extractor/generic.py
youtube_dl/extractor/nowvideo.py

index 1c45ebb00dbc543af4d808add5f66207ef42e27e..e0d227aec93fd13feecf27409b3fd790b20af1ca 100644 (file)
@@ -519,7 +519,7 @@ class GenericIE(InfoExtractor):
 
         # Look for embedded NowVideo player
         mobj = re.search(
-            r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:(?:embed|www)\.)?nowvideo\.(?:ch|sx|eu)/embed\.php.+?)\1', webpage)
+            r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:(?:embed|www)\.)?nowvideo\.(?:ch|sx|eu|at|ag|co)/embed\.php.+?)\1', webpage)
         if mobj is not None:
             return self.url_result(mobj.group('url'), 'NowVideo')
 
index 8e6ec23442b33421bfcc1ae4514c5da776b0326d..bfba184184c09bfd429698229efc1375c334e617 100644 (file)
@@ -7,7 +7,7 @@ class NowVideoIE(NovaMovIE):
     IE_NAME = 'nowvideo'
     IE_DESC = 'NowVideo'
 
-    _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'nowvideo\.(?:ch|sx|eu)'}
+    _VALID_URL = NovaMovIE._VALID_URL_TEMPLATE % {'host': 'nowvideo\.(?:ch|sx|eu|at|ag|co)'}
 
     _HOST = 'www.nowvideo.ch'