Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix only_hosts

Jules-WinnfieldX73a423ddaca7
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 @@ class ScrapeMapper:
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 <[email protected]>"]
readme = "README.md"