[generic] Add support for videoweed embeds
authorSergey M․ <dstftw@gmail.com>
Sat, 5 Apr 2014 08:49:45 +0000 (15:49 +0700)
committerSergey M․ <dstftw@gmail.com>
Sat, 5 Apr 2014 08:49:45 +0000 (15:49 +0700)
youtube_dl/extractor/generic.py

index 238cc7125e9416e2a1bcb415b3b225a9b079f570..1c45ebb00dbc543af4d808add5f66207ef42e27e 100644 (file)
@@ -523,6 +523,12 @@ class GenericIE(InfoExtractor):
         if mobj is not None:
             return self.url_result(mobj.group('url'), 'NowVideo')
 
+        # Look for embedded VideoWeed player
+        mobj = re.search(
+            r'<iframe[^>]+?src=(["\'])(?P<url>http://(?:(?:embed|www)\.)?videoweed\.(?:es|com)/embed\.php.+?)\1', webpage)
+        if mobj is not None:
+            return self.url_result(mobj.group('url'), 'VideoWeed')
+
         # Look for embedded Facebook player
         mobj = re.search(
             r'<iframe[^>]+?src=(["\'])(?P<url>https://www\.facebook\.com/video/embed.+?)\1', webpage)