mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-26 04:32:51 +01:00
[kemonoparty] update pagination offset
This commit is contained in:
parent
52d1eb928d
commit
94a2dfe205
@ -230,9 +230,10 @@ class KemonopartyUserExtractor(KemonopartyExtractor):
|
||||
posts = self.request(url, params=params).json()
|
||||
yield from posts
|
||||
|
||||
if len(posts) < 25:
|
||||
cnt = len(posts)
|
||||
if cnt < 25:
|
||||
return
|
||||
params["o"] += 25
|
||||
params["o"] += cnt
|
||||
|
||||
|
||||
class KemonopartyPostExtractor(KemonopartyExtractor):
|
||||
@ -420,9 +421,10 @@ class KemonopartyDiscordExtractor(KemonopartyExtractor):
|
||||
posts = self.request(url, params=params).json()
|
||||
yield from posts
|
||||
|
||||
if len(posts) < 25:
|
||||
cnt = len(posts)
|
||||
if cnt < 25:
|
||||
break
|
||||
params["skip"] += 25
|
||||
params["skip"] += cnt
|
||||
|
||||
|
||||
class KemonopartyDiscordServerExtractor(KemonopartyExtractor):
|
||||
|
Loading…
Reference in New Issue
Block a user