[kemonoparty] fix 'o' query parameter handling (#6597)

fixes regression introduced in 74d855c6
This commit is contained in:
Mike Fährmann
2024-12-04 18:26:38 +01:00
parent d96717e2e6
commit f33ca82ce7

View File

@@ -552,7 +552,8 @@ class KemonoAPI():
return response.json() return response.json()
def _pagination(self, endpoint, params, batch=50, key=False): 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: while True:
data = self._call(endpoint, params) data = self._call(endpoint, params)