Skip to content

Bulk asynchronous downloader for multiple file hosts

Update settings_user_prompts.py

Jacoba657b60aee5c
diff --git a/cyberdrop_dl/ui/prompts/settings_user_prompts.py b/cyberdrop_dl/ui/prompts/settings_user_prompts.py
index 00972619b..e0138bd42 100644
--- a/cyberdrop_dl/ui/prompts/settings_user_prompts.py
+++ b/cyberdrop_dl/ui/prompts/settings_user_prompts.py
@@ -99,35 +99,35 @@ def edit_download_options_prompt(manager: Manager, config: Dict) -> None:
message="Select the download options you want to enable:",
choices=[
Choice(value="block_download_sub_folders",
- name="Block Download Sub Folders",
- enabled=config["Download_Options"]["block_download_sub_folders"]),
+ name="Block Download Sub Folders",
+ enabled=config["Download_Options"]["block_download_sub_folders"]),
Choice(value="disable_download_attempt_limit",
- name="Disable Download Attempt Limit",
- enabled=config["Download_Options"]["disable_download_attempt_limit"]),
+ name="Disable Download Attempt Limit",
+ enabled=config["Download_Options"]["disable_download_attempt_limit"]),
Choice(value="disable_file_timestamps",
- name="Disable File Timestamps Editing",
- enabled=config["Download_Options"]["disable_file_timestamps"]),
+ name="Disable File Timestamps Editing",
+ enabled=config["Download_Options"]["disable_file_timestamps"]),
Choice(value="include_album_id_in_folder_name",
- name="Include Album ID In Folder Name",
- enabled=config["Download_Options"]["include_album_id_in_folder_name"]),
+ name="Include Album ID In Folder Name",
+ enabled=config["Download_Options"]["include_album_id_in_folder_name"]),
Choice(value="include_thread_id_in_folder_name",
- name="Include Thread ID In Folder Name",
- enabled=config["Download_Options"]["include_album_id_in_folder_name"]),
+ name="Include Thread ID In Folder Name",
+ enabled=config["Download_Options"]["include_album_id_in_folder_name"]),
Choice(value="remove_domains_from_folder_names",
- name="Remove Domains From Folder Names",
- enabled=config["Download_Options"]["remove_domains_from_folder_names"]),
+ name="Remove Domains From Folder Names",
+ enabled=config["Download_Options"]["remove_domains_from_folder_names"]),
Choice(value="remove_generated_id_from_filenames",
- name="Remove Generated ID From Filenames",
- enabled=config["Download_Options"]["remove_generated_id_from_filenames"]),
+ name="Remove Generated ID From Filenames",
+ enabled=config["Download_Options"]["remove_generated_id_from_filenames"]),
Choice(value="scrape_single_forum_post",
- name="Scrape Single Forum Post",
- enabled=config["Download_Options"]["scrape_single_forum_post"]),
+ name="Scrape Single Forum Post",
+ enabled=config["Download_Options"]["scrape_single_forum_post"]),
Choice(value="separate_posts",
- name="Separate Posts Into Folders",
- enabled=config["Download_Options"]["separate_posts"]),
+ name="Separate Posts Into Folders",
+ enabled=config["Download_Options"]["separate_posts"]),
Choice(value="skip_download_mark_completed",
- name="Skip Download and Mark it as Completed",
- enabled=config["Download_Options"]["skip_download_mark_completed"]),
+ name="Skip Download and Mark it as Completed",
+ enabled=config["Download_Options"]["skip_download_mark_completed"]),
], long_instruction="ARROW KEYS: Navigate | TAB: Select | ENTER: Confirm",
vi_mode=manager.vi_mode,
).execute()
@@ -278,20 +278,20 @@ def edit_ignore_options_prompt(manager: Manager, config: Dict) -> None:
message="Select the ignore options you want to enable:",
choices=[
Choice(value="exclude_videos",
- name="Don't download videos files",
- enabled=config["Ignore_Options"]["exclude_videos"]),
+ name="Don't download videos files",
+ enabled=config["Ignore_Options"]["exclude_videos"]),
Choice(value="exclude_images",
- name="Don't download images files",
- enabled=config["Ignore_Options"]["exclude_images"]),
+ name="Don't download images files",
+ enabled=config["Ignore_Options"]["exclude_images"]),
Choice(value="exclude_audio",
- name="Don't download audio files",
- enabled=config["Ignore_Options"]["exclude_audio"]),
+ name="Don't download audio files",
+ enabled=config["Ignore_Options"]["exclude_audio"]),
Choice(value="exclude_other",
- name="Don't download other files",
- enabled=config["Ignore_Options"]["exclude_other"]),
+ name="Don't download other files",
+ enabled=config["Ignore_Options"]["exclude_other"]),
Choice(value="ignore_coomer_ads",
- name="Ignore coomer ads when scraping",
- enabled=config["Ignore_Options"]["ignore_coomer_ads"]),
+ name="Ignore coomer ads when scraping",
+ enabled=config["Ignore_Options"]["ignore_coomer_ads"]),
], long_instruction="ARROW KEYS: Move | TAB: Select | ENTER: Confirm",
vi_mode=manager.vi_mode,
).execute()
@@ -337,23 +337,23 @@ def edit_runtime_options_prompt(manager: Manager, config: Dict) -> None:
message="Select the runtime options you want to enable:",
choices=[
Choice(value="ignore_history",
- name="Ignore the history (previously downloaded files)",
- enabled=config["Runtime_Options"]["ignore_history"]),
+ name="Ignore the history (previously downloaded files)",
+ enabled=config["Runtime_Options"]["ignore_history"]),
Choice(value="skip_check_for_partial_files",
- name="Skip checking for partial files in the download folder",
- enabled=config["Runtime_Options"]["skip_check_for_partial_files"]),
+ name="Skip checking for partial files in the download folder",
+ enabled=config["Runtime_Options"]["skip_check_for_partial_files"]),
Choice(value="skip_check_for_empty_folders",
- name="Skip checking for empty folders in the download folder",
- enabled=config["Runtime_Options"]["skip_check_for_empty_folders"]),
+ name="Skip checking for empty folders in the download folder",
+ enabled=config["Runtime_Options"]["skip_check_for_empty_folders"]),
Choice(value="delete_partial_files",
- name="Delete partial files in the download folder",
- enabled=config["Runtime_Options"]["delete_partial_files"]),
+ name="Delete partial files in the download folder",
+ enabled=config["Runtime_Options"]["delete_partial_files"]),
Choice(value="send_unsupported_to_jdownloader",
- name="Send unsupported urls to JDownloader to download",
- enabled=config["Runtime_Options"]["send_unsupported_to_jdownloader"]),
+ name="Send unsupported urls to JDownloader to download",
+ enabled=config["Runtime_Options"]["send_unsupported_to_jdownloader"]),
Choice(value="update_last_forum_post",
- name="Update the last forum post after scraping",
- enabled=config["Runtime_Options"]["update_last_forum_post"]),
+ name="Update the last forum post after scraping",
+ enabled=config["Runtime_Options"]["update_last_forum_post"]),
], long_instruction="ARROW KEYS: Move | TAB: Select | ENTER: Confirm",
vi_mode=manager.vi_mode,
).execute()
@@ -390,7 +390,7 @@ def edit_sort_options_prompt(manager: Manager, config: Dict) -> None:
console.print("Editing Sort Options")
config["Sorting"]["sort_downloads"] = False
sort_downloads = inquirer.confirm(message="Do you want Cyberdrop-DL to sort files for you?",
- vi_mode=manager.vi_mode).execute()
+ vi_mode=manager.vi_mode).execute()
if sort_downloads:
config["Sorting"]["sort_downloads"] = True
sort_folder = inquirer.filepath(