mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-03 04:42:52 +08:00
fix greedy regex
This commit is contained in:
parent
5b58821823
commit
f3c56e21ad
@ -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…
Reference in New Issue
Block a user