Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: kemono pagination (#1046)

NTFSvolume9f19c172a0d0
diff --git a/cyberdrop_dl/crawlers/_kemono_base.py b/cyberdrop_dl/crawlers/_kemono_base.py
index 7ea725281..1d2b36a39 100644
--- a/cyberdrop_dl/crawlers/_kemono_base.py
+++ b/cyberdrop_dl/crawlers/_kemono_base.py
@@ -306,7 +306,7 @@ class KemonoBaseCrawler(Crawler, is_abc=True):
await self._handle_discord_post(new_scrape_item, post)
scrape_item.add_children()
- if not n_posts < MAX_OFFSET_PER_CALL:
+ if n_posts < MAX_OFFSET_PER_CALL:
break
@fallback_if_no_api
@@ -521,7 +521,7 @@ class KemonoBaseCrawler(Crawler, is_abc=True):
await self._handle_user_post(new_scrape_item, post)
scrape_item.add_children()
- if not n_posts < MAX_OFFSET_PER_CALL:
+ if n_posts < MAX_OFFSET_PER_CALL:
break
async def __api_pager(self, url: URL) -> AsyncGenerator[dict[str, Any]]: