Procházet zdrojové kódy

[generic] Allow new SWFObject()-style imports

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.
Philipp Hagemeister před 11 roky
rodič
revize
a7e97f6db1
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      youtube_dl/extractor/generic.py

+ 2 - 1
youtube_dl/extractor/generic.py

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