mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 03:33:02 +00:00
[slideshare] Fix extraction (#5279)
This commit is contained in:
parent
7e17ec8c71
commit
425142be60
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ def _real_extract(self, url):
|
|||
page_title = mobj.group('title')
|
||||
webpage = self._download_webpage(url, page_title)
|
||||
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')
|
||||
info = json.loads(slideshare_obj)
|
||||
if info['slideshow']['type'] != 'video':
|
||||
|
|
Loading…
Reference in a new issue