Browse Source

[slideshare] Fix extraction

master
satunnainen 7 years ago
committed by Sergey M
parent
commit
00dbdfc1f7
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/slideshare.py

2
youtube_dl/extractor/slideshare.py

@ -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':

Loading…
Cancel
Save