[kemono] add '.bin' archive files to archives list (#8156)
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user