[slideshare] Fix extraction (#5279)
authorNaglis Jonaitis <njonaitis@gmail.com>
Thu, 26 Mar 2015 15:46:20 +0000 (17:46 +0200)
committerNaglis Jonaitis <njonaitis@gmail.com>
Thu, 26 Mar 2015 15:47:25 +0000 (17:47 +0200)
youtube_dl/extractor/slideshare.py

index 9f79ff5c1b66d2bf37369a6009a914043493b407..0b717a1e42b8dd2c3d8a88d602f001876cf99e03 100644 (file)
@@ -30,7 +30,7 @@ class SlideshareIE(InfoExtractor):
         page_title = mobj.group('title')
         webpage = self._download_webpage(url, page_title)
         slideshare_obj = self._search_regex(
-            r'var\s+slideshare_object\s*=\s*({.*?});\s*var\s+user_info\s*=',
+            r'\$\.extend\(slideshare_object,\s*(\{.*?\})\);',
             webpage, 'slideshare object')
         info = json.loads(slideshare_obj)
         if info['slideshow']['type'] != 'video':