Bulk asynchronous downloader for multiple file hosts
Python asynciobunkrcyberdropdownloaderdropboxfilestergofilegoogle-drivemediafiremegamega-nzonedrivepatreonpawchivepinterestpixeldraintransfer-ittwitchtwittervk
Fix only_hosts
Jules-WinnfieldX73a423ddaca7
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.pyindex 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.pyindex 69af0fba3..b7070b162 100644--- a/cyberdrop_dl/scraper/scraper.py+++ b/cyberdrop_dl/scraper/scraper.py@@ -355,9 +355,10 @@ class ScrapeMapper:skip = Truebreakif self.manager.config_manager.settings_data['Ignore_Options']['only_hosts']:+ skip = Truefor 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 = Falsebreakif str(scrape_item.url).endswith("/"):diff --git a/pyproject.toml b/pyproject.tomlindex 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"