mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[slideshare] Fix extraction
This commit is contained in:
parent
f354d84807
commit
00dbdfc1f7
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def _real_extract(self, url):
|
|||
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 a new issue