]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[escapist] Support JavaScript player (Fixes #5034)
authorPhilipp Hagemeister <phihag@phihag.de>
Tue, 24 Feb 2015 15:33:07 +0000 (16:33 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Tue, 24 Feb 2015 15:33:07 +0000 (16:33 +0100)
youtube_dl/extractor/escapist.py

index b49b9869f2356eaa7e09916046a8f4b30f4f5d47..51ffec7ee381ec74b78442a054825592ff128446 100644 (file)
@@ -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 = []