From 73a423ddaca72d453ca90d47eaeb33c507df7d8e Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Thu, 11 Jan 2024 14:02:54 -0700 Subject: [PATCH] Fix only_hosts --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/scraper/scraper.py | 5 +++-- pyproject.toml | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 5e815e462..b0667157a 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.1.39" +__version__ = "5.1.41" diff --git a/cyberdrop_dl/scraper/scraper.py b/cyberdrop_dl/scraper/scraper.py index 69af0fba3..b7070b162 100644 --- a/cyberdrop_dl/scraper/scraper.py +++ b/cyberdrop_dl/scraper/scraper.py @@ -355,9 +355,10 @@ async def map_url(self, scrape_item: ScrapeItem) -> None: skip = True break if self.manager.config_manager.settings_data['Ignore_Options']['only_hosts']: + skip = True for only_host in self.manager.config_manager.settings_data['Ignore_Options']['only_hosts']: - if only_host not in scrape_item.url.host: - skip = True + if only_host in scrape_item.url.host: + skip = False break if str(scrape_item.url).endswith("/"): diff --git a/pyproject.toml b/pyproject.toml index ed2f7ecf9..9640b9d46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.1.39" +version = "5.1.41" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"