projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e17ec8
)
[slideshare] Fix extraction (#5279)
author
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 26 Mar 2015 15:46:20 +0000
(17:46 +0200)
committer
Naglis Jonaitis
<njonaitis@gmail.com>
Thu, 26 Mar 2015 15:47:25 +0000
(17:47 +0200)
youtube_dl/extractor/slideshare.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/slideshare.py
b/youtube_dl/extractor/slideshare.py
index 9f79ff5c1b66d2bf37369a6009a914043493b407..0b717a1e42b8dd2c3d8a88d602f001876cf99e03 100644
(file)
--- a/
youtube_dl/extractor/slideshare.py
+++ b/
youtube_dl/extractor/slideshare.py
@@
-30,7
+30,7
@@
class SlideshareIE(InfoExtractor):
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':