1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-13 11:22:13 +08:00

[slideshare] fix extraction

This commit is contained in:
satunnainen 2017-07-09 18:55:54 +03:00
parent 485cb37576
commit 5b58821823

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