Skip to content

Bulk asynchronous downloader for multiple file hosts

fix: do not try to remove trailing slash from URLs with no path (#630)

NTFSvolumef05c13342455
diff --git a/cyberdrop_dl/scraper/crawler.py b/cyberdrop_dl/scraper/crawler.py
index cc37dbd94..b73f88f92 100644
--- a/cyberdrop_dl/scraper/crawler.py
+++ b/cyberdrop_dl/scraper/crawler.py
@@ -292,7 +292,7 @@ class Crawler(ABC):
def remove_trailing_slash(url: URL) -> URL:
- if url.name:
+ if url.name or url.path == "/":
return url
return url.parent.with_fragment(url.fragment).with_query(url.query)