Browse Source

[escapist] Support JavaScript player (Fixes #5034)

Philipp Hagemeister 10 years ago
parent
commit
54233c9080
1 changed files with 8 additions and 1 deletions
  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]
 
         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 = []