Skip to content

Commit

Permalink
[zerochan] fetch metadata for each post separately (#5869)
Browse files Browse the repository at this point in the history
instead of processing all posts at once before returning any of them
  • Loading branch information
mikf committed Jul 20, 2024
1 parent 84a634f commit fef80a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gallery_dl/extractor/zerochan.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,13 @@ def posts_api(self):
post_id = post["id"]
post.update(self._parse_entry_html(post_id))
post.update(self._parse_entry_api(post_id))
yield post
else:
for post in posts:
base = static + str(post["id"])
post["file_url"] = base + ".jpg"
post["_fallback"] = (base + ".png",)

yield from posts
yield post

if not data.get("next"):
return
Expand Down

0 comments on commit fef80a2

Please sign in to comment.