diff options
| author | 2025-01-12 21:27:05 -0500 | |
|---|---|---|
| committer | 2025-01-12 21:27:05 -0500 | |
| commit | 0532a387ef5b7fcb4507a9b094dca37a5f635fe1 (patch) | |
| tree | 81a387ac9407dff42faffd3a7ad29971ac23671d /gallery_dl/extractor/slideshare.py | |
| parent | 63b6119a44afe2be9563acffd72aa974bb9d7f17 (diff) | |
New upstream version 1.28.4.upstream/1.28.4
Diffstat (limited to 'gallery_dl/extractor/slideshare.py')
| -rw-r--r-- | gallery_dl/extractor/slideshare.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gallery_dl/extractor/slideshare.py b/gallery_dl/extractor/slideshare.py index e5e7a6b..0722d23 100644 --- a/gallery_dl/extractor/slideshare.py +++ b/gallery_dl/extractor/slideshare.py @@ -10,7 +10,7 @@ """Extractors for https://www.slideshare.net/""" from .common import GalleryExtractor -from .. import text, util +from .. import text class SlidesharePresentationExtractor(GalleryExtractor): @@ -31,8 +31,7 @@ class SlidesharePresentationExtractor(GalleryExtractor): GalleryExtractor.__init__(self, match, url) def metadata(self, page): - data = util.json_loads(text.extr( - page, 'id="__NEXT_DATA__" type="application/json">', '</script>')) + data = self._extract_nextdata(page) self.slideshow = slideshow = data["props"]["pageProps"]["slideshow"] return { |
