[kemonoparty] actually add a 'type' metadata field (#1556)
This commit is contained in:
@@ -54,6 +54,7 @@ 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["type"] = file["type"]
|
||||||
url = file["path"]
|
url = file["path"]
|
||||||
if url[0] == "/":
|
if url[0] == "/":
|
||||||
url = "https://data.kemono.party" + url
|
url = "https://data.kemono.party" + url
|
||||||
@@ -118,6 +119,7 @@ class KemonopartyPostExtractor(KemonopartyExtractor):
|
|||||||
"shared_file": False,
|
"shared_file": False,
|
||||||
"subcategory": "post",
|
"subcategory": "post",
|
||||||
"title": "c96取り置き",
|
"title": "c96取り置き",
|
||||||
|
"type": "file",
|
||||||
"user": "6993449",
|
"user": "6993449",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user