Skip to content

Bulk asynchronous downloader for multiple file hosts

add cli arg for sort all configs

Jules-WinnfieldX39c860a1570c
diff --git a/cyberdrop_dl/managers/args_manager.py b/cyberdrop_dl/managers/args_manager.py
index 737791eec..8812bdf73 100644
--- a/cyberdrop_dl/managers/args_manager.py
+++ b/cyberdrop_dl/managers/args_manager.py
@@ -64,6 +64,11 @@ class ArgsManager:
if self.parsed_args['download_all_configs']:
self.all_configs = True
self.immediate_download = True
+
+ if self.parsed_args['sort_all_configs']:
+ self.sort_all_configs = True
+ self.all_configs = True
+ self.immediate_download = True
if self.parsed_args['retry_failed']:
self.retry = True
diff --git a/cyberdrop_dl/utils/args/args.py b/cyberdrop_dl/utils/args/args.py
index 31be06879..968e488d9 100644
--- a/cyberdrop_dl/utils/args/args.py
+++ b/cyberdrop_dl/utils/args/args.py
@@ -15,6 +15,7 @@ def parse_args() -> argparse.Namespace:
general.add_argument("--no-ui", action="store_true", help="Disables the UI/Progress view entirely", default=False)
general.add_argument("--download", action="store_true", help="Skip the UI and go straight to downloading", default=False)
general.add_argument("--download-all-configs", action="store_true", help="Skip the UI and go straight to downloading (runs all configs sequentially)", default=False)
+ general.add_argument("--sort-all-configs", action="store_true", help="Sort all configs sequentially", default=False)
general.add_argument("--retry-failed", action="store_true", help="retry failed downloads", default=False)
general.add_argument("--vi-mode", action="store_true", help="enable VIM keybindings for UI", default=None)