Skip to content

Commit

Permalink
[fanbox] fix crash with missing images (mikf#3673)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Feb 23, 2023
1 parent 3fa456d commit 511a051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gallery_dl/extractor/fanbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ def _get_post_data(self, post_id):
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)
Expand Down Expand Up @@ -256,7 +257,6 @@ def __init__(self, match):

def posts(self):
url = "https://api.fanbox.cc/post.listCreator?creatorId={}&limit=10"

return self._pagination(url.format(self.creator_id))


Expand Down

0 comments on commit 511a051

Please sign in to comment.