From 8467ac947aad935412f42b8ff9361bd85a4dd683 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Sun, 3 Mar 2024 18:34:05 -0700 Subject: [PATCH] e-hentai fix for warnings on /s/ --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/scraper/crawlers/ehentai_crawler.py | 5 ++--- pyproject.toml | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 4a6564b0b..a5042113b 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.1.78" \ No newline at end of file +__version__ = "5.1.79" \ No newline at end of file diff --git a/cyberdrop_dl/scraper/crawlers/ehentai_crawler.py b/cyberdrop_dl/scraper/crawlers/ehentai_crawler.py index 308295dae..4f275d4b5 100644 --- a/cyberdrop_dl/scraper/crawlers/ehentai_crawler.py +++ b/cyberdrop_dl/scraper/crawlers/ehentai_crawler.py @@ -27,10 +27,9 @@ async def fetch(self, scrape_item: ScrapeItem) -> None: """Determines where to send the scrape item based on the url""" task_id = await self.scraping_progress.add_task(scrape_item.url) - if not self.warnings_set: - await self.set_no_warnings(scrape_item) - if "g" in scrape_item.url.parts: + if not self.warnings_set: + await self.set_no_warnings(scrape_item) await self.album(scrape_item) elif "s" in scrape_item.url.parts: await self.image(scrape_item) diff --git a/pyproject.toml b/pyproject.toml index 71b5e475f..f74e02b82 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.1.78" +version = "5.1.79" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"