projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f354d84
)
[slideshare] Fix extraction
author
satunnainen
<satunnainen@users.noreply.github.com>
Fri, 14 Jul 2017 15:11:07 +0000
(18:11 +0300)
committer
Sergey M
<dstftw@gmail.com>
Fri, 14 Jul 2017 15:11:07 +0000
(22:11 +0700)
youtube_dl/extractor/slideshare.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/slideshare.py
b/youtube_dl/extractor/slideshare.py
index 74a1dc672e7725f2f3500284a53ade4ca16c380d..e89ebebe7567ebb0abae4a15b21b100339c64b44 100644
(file)
--- a/
youtube_dl/extractor/slideshare.py
+++ b/
youtube_dl/extractor/slideshare.py
@@
-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':