]> Raphaƫl G. Git Repositories - youtubedl/blobdiff - youtube_dl/extractor/vidzi.py
debian/changelog: Annotate the log with bugs to close.
[youtubedl] / youtube_dl / extractor / vidzi.py
index 9026e778cfb108462c5fdfa5ca2a42d166dc37a7..d70283479ae18c5c01b0c5caba75ad0e3392698f 100644 (file)
@@ -54,7 +54,8 @@ class VidziIE(InfoExtractor):
                 self._search_regex(
                     r'setup\(([^)]+)\)', code, 'jwplayer data',
                     default=NO_DEFAULT if num == len(codes) else '{}'),
-                video_id, transform_source=js_to_json)
+                video_id, transform_source=lambda s: js_to_json(
+                    re.sub(r'\s*\+\s*window\[.+?\]', '', s)))
             if jwplayer_data:
                 break