1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-23 11:12:40 +01:00

[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
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

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)