[generic] Add support for nowvideo embedded videos
authorSergey M. <dstftw@gmail.com>
Mon, 24 Feb 2014 16:37:42 +0000 (23:37 +0700)
committerSergey M. <dstftw@gmail.com>
Mon, 24 Feb 2014 16:37:42 +0000 (23:37 +0700)
youtube_dl/extractor/generic.py

index 9a2e54d149011f66b08d09860078f23ecf8607a9..22d1b5daa4d60d512992476637d5b2e369d63b5c 100644 (file)
@@ -363,11 +363,17 @@ class GenericIE(InfoExtractor):
         if mobj is not None:
             return self.url_result(mobj.group(1), 'Mpora')
 
-        # Look for embedded Novamov player
+        # Look for embedded NovaMov player
         mobj = re.search(
             r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:(?:embed|www)\.)?novamov\.com/embed\.php.+?)\1', webpage)
         if mobj is not None:
-            return self.url_result(mobj.group('url'), 'Novamov')
+            return self.url_result(mobj.group('url'), 'NovaMov')
+
+        # Look for embedded NowVideo player
+        mobj = re.search(
+            r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:(?:embed|www)\.)?nowvideo\.(?:ch|sx|eu)/embed\.php.+?)\1', webpage)
+        if mobj is not None:
+            return self.url_result(mobj.group('url'), 'NowVideo')
 
         # Look for embedded Facebook player
         mobj = re.search(