From f33ca82ce7a06d1178d2297a159c5caa3696a978 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Wed, 4 Dec 2024 18:26:38 +0100 Subject: [PATCH] [kemonoparty] fix 'o' query parameter handling (#6597) fixes regression introduced in 74d855c6 --- gallery_dl/extractor/kemonoparty.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gallery_dl/extractor/kemonoparty.py b/gallery_dl/extractor/kemonoparty.py index 3d04f751..16c5b999 100644 --- a/gallery_dl/extractor/kemonoparty.py +++ b/gallery_dl/extractor/kemonoparty.py @@ -552,7 +552,8 @@ class KemonoAPI(): return response.json() def _pagination(self, endpoint, params, batch=50, key=False): - params["o"] = text.parse_int(params.get("o")) % 50 + offset = text.parse_int(params.get("o")) + params["o"] = offset - offset % batch while True: data = self._call(endpoint, params)