[stitcher] fix episode config extraction
authorRemita Amine <remitamine@gmail.com>
Tue, 5 Jul 2016 09:44:16 +0000 (10:44 +0100)
committerRemita Amine <remitamine@gmail.com>
Tue, 5 Jul 2016 09:44:16 +0000 (10:44 +0100)
youtube_dl/extractor/stitcher.py

index d5c852f5207bdad9510a720d69b0cd70527f9f3f..0f8782d038c9fdadf903b05479ff468a039c6aa4 100644 (file)
@@ -56,7 +56,7 @@ class StitcherIE(InfoExtractor):
 
         episode = self._parse_json(
             js_to_json(self._search_regex(
-                r'(?s)var\s+stitcher\s*=\s*({.+?});\n', webpage, 'episode config')),
+                r'(?s)var\s+stitcher(?:Config)?\s*=\s*({.+?});\n', webpage, 'episode config')),
             display_id)['config']['episode']
 
         title = unescapeHTML(episode['title'])