[kemonoparty] fix attachment IDs overwriting post IDs (#2984)
regression from 09a5cc61
This commit is contained in:
@@ -99,7 +99,8 @@ class KemonopartyExtractor(Extractor):
|
|||||||
yield Message.Directory, post
|
yield Message.Directory, post
|
||||||
|
|
||||||
for post["num"], file in enumerate(files, 1):
|
for post["num"], file in enumerate(files, 1):
|
||||||
post.update(file)
|
post["hash"] = file["hash"]
|
||||||
|
post["type"] = file["type"]
|
||||||
url = file["path"]
|
url = file["path"]
|
||||||
|
|
||||||
text.nameext_from_url(file.get("name", url), post)
|
text.nameext_from_url(file.get("name", url), post)
|
||||||
|
|||||||
Reference in New Issue
Block a user