[generic] Look for ScreenwaveMedia embeds
authorfelix <felix.von.s@posteo.de>
Sat, 29 Aug 2015 05:55:20 +0000 (07:55 +0200)
committerSergey M․ <dstftw@gmail.com>
Sat, 29 Aug 2015 12:38:23 +0000 (18:38 +0600)
youtube_dl/extractor/generic.py

index 376feecae7a5ef59ae8e4cf674d984deefc0d6b0..5d41b6319a1ef857a95d51af3b0a378ab6260e12 100644 (file)
@@ -1718,6 +1718,15 @@ class GenericIE(InfoExtractor):
         if snagfilms_url:
             return self.url_result(snagfilms_url)
 
+        # Look for ScreenwaveMedia embeds
+        mobj = re.search(
+            r'<script[^>]+src=[\'"](http://player\d?\.screenwavemedia\.com/player\.php\?id=[A-Za-z0-9-]+)[\'"]',
+            webpage)
+        if mobj is not None:
+            return self.url_result(
+                unescapeHTML(mobj.group(1)),
+                'ScreenwaveMedia')
+
         # Look for AdobeTVVideo embeds
         mobj = re.search(
             r'<iframe[^>]+src=[\'"]((?:https?:)?//video\.tv\.adobe\.com/v/\d+[^"]+)[\'"]',