[kemono] add '.bin' archive files to archives list (#8156)

This commit is contained in:
Mike Fährmann
2025-09-05 08:51:11 +02:00
parent 61d793dc7d
commit 97d4a76926
2 changed files with 21 additions and 1 deletions

View File

@@ -151,7 +151,8 @@ class KemonoExtractor(Extractor):
file["extension"] = ext
elif ext == "txt" and file["extension"] != "txt":
file["_http_validate"] = _validate
elif ext in exts_archive:
elif ext in exts_archive or \
ext == "bin" and file["extension"] in exts_archive:
file["type"] = "archive"
if archives:
try:

View File

@@ -512,6 +512,25 @@ __tests__ = (
},
},
{
"#url" : "https://kemono.cr/patreon/user/108002999/post/136454591",
"#comment" : "'.zip' archive with '.bin' extension (#8156)",
"#category": ("", "kemono", "patreon"),
"#class" : kemono.KemonoPostExtractor,
"#range" : "0",
"#metadata": "post",
"archives": [{
"extension": "zip",
"filename": "#5 Kitagawa Marin",
"hash": "46cc99d4114906524fe52a6f772c51ab59ca1c3c0f6a8a0d3588a861b0d59ced",
"name": "#5 Kitagawa Marin.zip",
"path": "/46/cc/46cc99d4114906524fe52a6f772c51ab59ca1c3c0f6a8a0d3588a861b0d59ced.bin",
"type": "archive",
"url": "https://kemono.cr/data/46/cc/46cc99d4114906524fe52a6f772c51ab59ca1c3c0f6a8a0d3588a861b0d59ced.bin"
}],
},
{
"#url" : "https://kemono.cr/discord/server/488668827274444803/608504710906904576",
"#category": ("", "kemono", "discord"),