[zerochan] fetch metadata for each post separately (#5869)

instead of processing all posts at once before returning any of them
This commit is contained in:
Mike Fährmann
2024-07-20 02:11:27 +02:00
parent 84a634fc14
commit fef80a2f55

View File

@@ -192,13 +192,13 @@ class ZerochanTagExtractor(ZerochanExtractor):
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