1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[slideshare] Fix extraction (#5279)

This commit is contained in:
Naglis Jonaitis 2015-03-26 17:46:20 +02:00
parent 7e17ec8c71
commit 425142be60

View file

@ -30,7 +30,7 @@ class SlideshareIE(InfoExtractor):
page_title = mobj.group('title') page_title = mobj.group('title')
webpage = self._download_webpage(url, page_title) webpage = self._download_webpage(url, page_title)
slideshare_obj = self._search_regex( 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') webpage, 'slideshare object')
info = json.loads(slideshare_obj) info = json.loads(slideshare_obj)
if info['slideshow']['type'] != 'video': if info['slideshow']['type'] != 'video':