Skip to content

Bulk asynchronous downloader for multiple file hosts

Fix UI sorting input

Jules-WinnfieldX416809bfe030
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index 988a7dec4..09e343d56 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.0.7"
+__version__ = "5.0.8"
diff --git a/cyberdrop_dl/ui/prompts/settings_user_prompts.py b/cyberdrop_dl/ui/prompts/settings_user_prompts.py
index e5c5aa796..494e129a0 100644
--- a/cyberdrop_dl/ui/prompts/settings_user_prompts.py
+++ b/cyberdrop_dl/ui/prompts/settings_user_prompts.py
@@ -326,44 +326,44 @@ def edit_sort_options_prompt(config: Dict) -> None:
"""Edit the sort options"""
console.clear()
console.print("Editing Sort Options")
- config["Sort_Options"]["sort_downloads"] = False
+ config["Sorting"]["sort_downloads"] = False
sort_downloads = inquirer.confirm(message="Do you want Cyberdrop-DL to sort files for you?").execute()
if sort_downloads:
- config["Sort_Options"]["sort_downloads"] = True
+ config["Sorting"]["sort_downloads"] = True
sort_folder = inquirer.filepath(
message="Enter the folder you want to sort files into:",
- default=config['Sort_Options']['sort_folder'],
+ default=str(config['Sorting']['sort_folder']),
validate=PathValidator(is_dir=True, message="Input is not a directory"),
).execute()
sort_incremementer_format = inquirer.text(
message="Enter the sort incrementer format:",
- default=config['Sort_Options']['sort_incremementer_format'],
+ default=config['Sorting']['sort_incremementer_format'],
validate=EmptyInputValidator("Input should not be empty")
).execute()
sorted_audio_folder = inquirer.text(
- message="Enter the folder you want to sort audio files into:",
- default=config['Sort_Options']['sorted_audio_folder'],
+ message="Enter the format you want to sort audio files into:",
+ default=config['Sorting']['sorted_audio_folder'],
validate=EmptyInputValidator("Input should not be empty")
).execute()
sorted_video_folder = inquirer.text(
- message="Enter the folder you want to sort video files into:",
- default=config['Sort_Options']['sorted_video_folder'],
+ message="Enter the format you want to sort video files into:",
+ default=config['Sorting']['sorted_video_folder'],
validate=EmptyInputValidator("Input should not be empty")
).execute()
sorted_image_folder = inquirer.text(
- message="Enter the folder you want to sort image files into:",
- default=config['Sort_Options']['sorted_image_folder'],
+ message="Enter the format you want to sort image files into:",
+ default=config['Sorting']['sorted_image_folder'],
validate=EmptyInputValidator("Input should not be empty")
).execute()
sorted_other_folder = inquirer.text(
- message="Enter the folder you want to sort other files into:",
- default=config['Sort_Options']['sorted_other_folder'],
+ message="Enter the format you want to sort other files into:",
+ default=config['Sorting']['sorted_other_folder'],
validate=EmptyInputValidator("Input should not be empty")
).execute()
- config['Sort_Options']['sort_folder'] = sort_folder
- config['Sort_Options']['sort_incremementer_format'] = sort_incremementer_format
- config['Sort_Options']['sorted_audio_folder'] = sorted_audio_folder
- config['Sort_Options']['sorted_video_folder'] = sorted_video_folder
- config['Sort_Options']['sorted_image_folder'] = sorted_image_folder
- config['Sort_Options']['sorted_other_folder'] = sorted_other_folder
+ config['Sorting']['sort_folder'] = Path(sort_folder)
+ config['Sorting']['sort_incremementer_format'] = sort_incremementer_format
+ config['Sorting']['sorted_audio'] = sorted_audio_folder
+ config['Sorting']['sorted_video'] = sorted_video_folder
+ config['Sorting']['sorted_image'] = sorted_image_folder
+ config['Sorting']['sorted_other'] = sorted_other_folder
diff --git a/pyproject.toml b/pyproject.toml
index 6b285b689..b9d107892 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.0.7"
+version = "5.0.8"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"