Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: DDoSGuard check from pages with no title

NTFSvolume3b84c16e16fd
diff --git a/cyberdrop_dl/managers/client_manager.py b/cyberdrop_dl/managers/client_manager.py
index 91ed1b204..ea0bd1be5 100644
--- a/cyberdrop_dl/managers/client_manager.py
+++ b/cyberdrop_dl/managers/client_manager.py
@@ -190,7 +190,7 @@ class ClientManager:
@staticmethod
def check_ddos_guard(soup: BeautifulSoup) -> bool:
- if soup.title:
+ if soup.title and soup.title.string:
for title in DDOS_GUARD_CHALLENGE_TITLES:
challenge_found = title.casefold() == soup.title.string.casefold() # type: ignore
if challenge_found:
@@ -205,7 +205,7 @@ class ClientManager:
@staticmethod
def check_cloudflare(soup: BeautifulSoup) -> bool:
- if soup.title:
+ if soup.title and soup.title.string:
for title in CLOUDFLARE_CHALLENGE_TITLES:
challenge_found = title.casefold() == soup.title.string.casefold() # type: ignore
if challenge_found: