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

pull/3713/head
Mike Fährmann 2 years ago
parent 3fa456d989
commit 511a051705
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

@ -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))

Loading…
Cancel
Save