[kemonoparty] fix attachment IDs overwriting post IDs (#2984)

regression from 09a5cc61
This commit is contained in:
Mike Fährmann
2022-09-30 16:47:09 +02:00
parent e1d714943b
commit 779e75c6f8

View File

@@ -99,7 +99,8 @@ class KemonopartyExtractor(Extractor):
yield Message.Directory, post
for post["num"], file in enumerate(files, 1):
post.update(file)
post["hash"] = file["hash"]
post["type"] = file["type"]
url = file["path"]
text.nameext_from_url(file.get("name", url), post)