Quellcode durchsuchen

[escapist] Support JavaScript player (Fixes #5034)

Philipp Hagemeister vor 10 Jahren
Ursprung
Commit
54233c9080
1 geänderte Dateien mit 8 neuen und 1 gelöschten Zeilen
  1. 8 1
      youtube_dl/extractor/escapist.py

+ 8 - 1
youtube_dl/extractor/escapist.py

@@ -42,7 +42,14 @@ class EscapistIE(InfoExtractor):
         title = raw_title.partition(' : ')[2]
         title = raw_title.partition(' : ')[2]
 
 
         config_url = compat_urllib_parse.unquote(self._html_search_regex(
         config_url = compat_urllib_parse.unquote(self._html_search_regex(
-            r'<param\s+name="flashvars"\s+value="config=([^"&]+)', webpage, 'config URL'))
+            r'''(?x)
+            (?:
+                <param\s+name="flashvars"\s+value="config=|
+                flashvars=&quot;config=
+            )
+            ([^"&]+)
+            ''',
+            webpage, 'config URL'))
 
 
         formats = []
         formats = []