[kemonoparty] fix 'o' query parameter handling (#6597)
fixes regression introduced in 74d855c6
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user