Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Fix only_hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Jan 11, 2024
1 parent 7370492 commit 73a423d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.39"
__version__ = "5.1.41"
5 changes: 3 additions & 2 deletions cyberdrop_dl/scraper/scraper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("/"):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 73a423d

Please sign in to comment.