1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 03:02:50 +01:00

[fanbox] fix crash with missing images (#3673)

This commit is contained in:
Mike Fährmann 2023-02-23 23:30:55 +01:00
parent 3fa456d989
commit 511a051705
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -89,6 +89,7 @@ class FanboxExtractor(Extractor):
content_body["imageMap"] = {
image_id: image_map[image_id]
for image_id in images
if image_id in image_map
}
post["content"] = "\n".join(content)
@ -256,7 +257,6 @@ class FanboxCreatorExtractor(FanboxExtractor):
def posts(self):
url = "https://api.fanbox.cc/post.listCreator?creatorId={}&limit=10"
return self._pagination(url.format(self.creator_id))