From 05d6efde570fdd1cdbecdf0486d19d580f812fb7 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Mon, 25 Mar 2024 12:44:16 -0600 Subject: [PATCH] Fix cyberfile missing last page in scraping --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/scraper/crawlers/cyberfile_crawler.py | 2 +- pyproject.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 4f3c94956..ad9e2745c 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.9" \ No newline at end of file +__version__ = "5.2.11" \ No newline at end of file diff --git a/cyberdrop_dl/scraper/crawlers/cyberfile_crawler.py b/cyberdrop_dl/scraper/crawlers/cyberfile_crawler.py index bb941ac82..1ca434fc2 100644 --- a/cyberdrop_dl/scraper/crawlers/cyberfile_crawler.py +++ b/cyberdrop_dl/scraper/crawlers/cyberfile_crawler.py @@ -74,7 +74,7 @@ async def folder(self, scrape_item: ScrapeItem) -> None: self.manager.task_group.create_task(self.run(new_scrape_item)) page += 1 - if page >= num_pages: + if page > num_pages: break @error_handling_wrapper diff --git a/pyproject.toml b/pyproject.toml index 36d86f8db..7f52ffc6d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.2.9" +version = "5.2.11" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"