[kemonoparty] actually add a 'type' metadata field (#1556)

This commit is contained in:
Mike Fährmann
2021-05-27 22:11:31 +02:00
parent bb50e85795
commit c0fa5058da

View File

@@ -54,6 +54,7 @@ class KemonopartyExtractor(Extractor):
yield Message.Directory, post
for post["num"], file in enumerate(files, 1):
post["type"] = file["type"]
url = file["path"]
if url[0] == "/":
url = "https://data.kemono.party" + url
@@ -118,6 +119,7 @@ class KemonopartyPostExtractor(KemonopartyExtractor):
"shared_file": False,
"subcategory": "post",
"title": "c96取り置き",
"type": "file",
"user": "6993449",
},
}),