Skip to content

Bulk asynchronous downloader for multiple file hosts

Actually fix retry limit

Jules-WinnfieldX4aaf060f08fa
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 705e0f562..80027f7cb 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "2.24.1"
+__version__ = "2.24.2"
diff --git a/cyberdrop_dl/utils/downloaders.py b/cyberdrop_dl/utils/downloaders.py
index f85c19a13..0a9d6e572 100644
--- a/cyberdrop_dl/utils/downloaders.py
+++ b/cyberdrop_dl/utils/downloaders.py
@@ -80,7 +80,8 @@ class Downloader:
show_progress: bool = True
) -> None:
"""Download the content of given URL"""
- self.current_attempt[str(url)] = 0
+ if str(url) not in self.current_attempt.keys():
+ self.current_attempt[str(url)] = 0
headers = {'Referer': str(referral), 'user-agent': user_agent}
# return if completed already