[fanbox] fix crash with missing images (#3673)
This commit is contained in:
@@ -89,6 +89,7 @@ class FanboxExtractor(Extractor):
|
|||||||
content_body["imageMap"] = {
|
content_body["imageMap"] = {
|
||||||
image_id: image_map[image_id]
|
image_id: image_map[image_id]
|
||||||
for image_id in images
|
for image_id in images
|
||||||
|
if image_id in image_map
|
||||||
}
|
}
|
||||||
|
|
||||||
post["content"] = "\n".join(content)
|
post["content"] = "\n".join(content)
|
||||||
@@ -256,7 +257,6 @@ class FanboxCreatorExtractor(FanboxExtractor):
|
|||||||
|
|
||||||
def posts(self):
|
def posts(self):
|
||||||
url = "https://api.fanbox.cc/post.listCreator?creatorId={}&limit=10"
|
url = "https://api.fanbox.cc/post.listCreator?creatorId={}&limit=10"
|
||||||
|
|
||||||
return self._pagination(url.format(self.creator_id))
|
return self._pagination(url.format(self.creator_id))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user