diff --git a/gallery_dl/extractor/kemonoparty.py b/gallery_dl/extractor/kemonoparty.py index eae02fdd..79070ee3 100644 --- a/gallery_dl/extractor/kemonoparty.py +++ b/gallery_dl/extractor/kemonoparty.py @@ -153,7 +153,7 @@ class KemonopartyExtractor(Extractor): file["type"] = "archive" if archives: try: - data = self.api.posts_archives(file["hash"]) + data = self.api.file(file["hash"]) data.update(file) post_archives.append(data) except Exception as exc: @@ -521,9 +521,9 @@ class KemonoAPI(): params = {"q": query, "o": offset, "tag": tags} return self._pagination(endpoint, params, 50, "posts") - def posts_archives(self, file_hash): - endpoint = "/posts/archives/" + file_hash - return self._call(endpoint)["archive"] + def file(self, file_hash): + endpoint = "/file/" + file_hash + return self._call(endpoint) def creator_posts(self, service, creator_id, offset=0, query=None): endpoint = "/{}/user/{}".format(service, creator_id) diff --git a/test/results/kemonoparty.py b/test/results/kemonoparty.py index 1c4d5a56..fc6c5fc8 100644 --- a/test/results/kemonoparty.py +++ b/test/results/kemonoparty.py @@ -401,7 +401,7 @@ __tests__ = ( "public_id": "soso", "relation_id": None, "service": "fanbox", - "updated": "2025-03-03T03:29:08.598883", + "updated": "2025-03-29T05:44:56.747243", }, "tags": [ "うごイラ",