1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 10:42:34 +01:00

[slideshare] fix extraction

This commit is contained in:
Mike Fährmann 2024-05-31 21:05:50 +02:00
parent 281ab33f87
commit 00440b8fb1
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -47,13 +47,13 @@ class SlidesharePresentationExtractor(GalleryExtractor):
}
def images(self, page):
parts = self.slideshow["slideImages"][0]["baseUrl"].split("/")
begin = "{}/95/{}-".format(
"/".join(parts[:4]),
self.slideshow["strippedTitle"],
slides = self.slideshow["slides"]
begin = "{}/{}/95/{}-".format(
slides["host"],
slides["imageLocation"],
slides["title"],
)
end = "-1024.jpg?" + parts[-1].rpartition("?")[2]
end = "-1024.jpg"
return [
(begin + str(n) + end, None)