Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix cyberdrop.

Jules-WinnfieldX70b717241979
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 82c716647..ecf5c4043 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "2.25.6"
+__version__ = "2.25.7"
diff --git a/cyberdrop_dl/main.py b/cyberdrop_dl/main.py
index b75888528..c3227decd 100644
--- a/cyberdrop_dl/main.py
+++ b/cyberdrop_dl/main.py
@@ -51,8 +51,7 @@ def parse_args():
parser.add_argument("--skip-redgif", help="This removes redgif links from downloads", action="store_true")
parser.add_argument("--skip-saint", help="This removes saint.to links from downloads", action="store_true")
- parser.add_argument("links", metavar="link", nargs="*",
- help="link to content to download (passing multiple links is supported)", default=[])
+ parser.add_argument("links", metavar="link", nargs="*",help="link to content to download (passing multiple links is supported)", default=[])
args = parser.parse_args()
return args
diff --git a/cyberdrop_dl/utils/downloaders.py b/cyberdrop_dl/utils/downloaders.py
index 9b44973c3..0d782cd89 100644
--- a/cyberdrop_dl/utils/downloaders.py
+++ b/cyberdrop_dl/utils/downloaders.py
@@ -40,9 +40,15 @@ def retry(f):
self.current_attempt[str(args[0])] += 1
if 'cyberdrop' in args[0].host:
- args = list(args)
- args[0] = URL(str(args[0]).replace('fs-05.', 'fs-04.'))
- args = tuple(args)
+ ext = '.'+args[0].name.split('.')[-1]
+ if ext in FILE_FORMATS['Images']:
+ args = list(args)
+ args[0] = args[0].with_host('img-01.cyberdrop.to')
+ args = tuple(args)
+ else:
+ args = list(args)
+ args[0] = URL(str(args[0]).replace('fs-05.', 'fs-04.'))
+ args = tuple(args)
if 'media-files.bunkr' in args[0].host:
args = list(args)
args[0] = URL(str(args[0]).replace('media-files.', 'media-files2.'))