summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/kemonoparty.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2024-12-08 20:34:33 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2024-12-08 20:34:33 -0500
commitf6877087773089220d68288d055276fca6c556d4 (patch)
treee4847e3bcff284c3daece7b3b9cf308dfc2129ab /gallery_dl/extractor/kemonoparty.py
parent1981ccaaea6eab2cf32536ec5afe132a870914d8 (diff)
New upstream version 1.28.1.upstream/1.28.1
Diffstat (limited to 'gallery_dl/extractor/kemonoparty.py')
-rw-r--r--gallery_dl/extractor/kemonoparty.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gallery_dl/extractor/kemonoparty.py b/gallery_dl/extractor/kemonoparty.py
index 3d04f75..16c5b99 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)