[slideshare] Fix extraction
authorsatunnainen <satunnainen@users.noreply.github.com>
Fri, 14 Jul 2017 15:11:07 +0000 (18:11 +0300)
committerSergey M <dstftw@gmail.com>
Fri, 14 Jul 2017 15:11:07 +0000 (22:11 +0700)
youtube_dl/extractor/slideshare.py

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