[generic] Allow new SWFObject()-style imports
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 26 Oct 2014 13:15:48 +0000 (14:15 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 26 Oct 2014 13:15:49 +0000 (14:15 +0100)
This embed style is used on http://www.bitburger-open.de/ , but that is not included as a test case since the format is likely to be temporary.

youtube_dl/extractor/generic.py

index 9b64988943b16bc93eedce5c878ebdc088d95906..5242154086468382c8aee3b203c2c81b95d9ebb7 100644 (file)
@@ -635,7 +635,8 @@ class GenericIE(InfoExtractor):
                 <iframe[^>]+?src=|
                 data-video-url=|
                 <embed[^>]+?src=|
-                embedSWF\(?:\s*
+                embedSWF\(?:\s*|
+                new\s+SWFObject\(
             )
             (["\'])
                 (?P<url>(?:https?:)?//(?:www\.)?youtube(?:-nocookie)?\.com/