diff --git a/gallery_dl/extractor/kemono.py b/gallery_dl/extractor/kemono.py index a5e1f6d6..fc5972c6 100644 --- a/gallery_dl/extractor/kemono.py +++ b/gallery_dl/extractor/kemono.py @@ -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: diff --git a/test/results/kemono.py b/test/results/kemono.py index 3a09b2b5..d385ace0 100644 --- a/test/results/kemono.py +++ b/test/results/kemono.py @@ -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"),