Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
fix user settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Mar 9, 2024
1 parent 9145177 commit 53fa85b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.1.98"
__version__ = "5.1.99"
28 changes: 14 additions & 14 deletions cyberdrop_dl/ui/prompts/settings_user_prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,31 +59,31 @@ def edit_config_values_prompt(manager: Manager) -> None:

# Edit Download Options
if action == 1:
edit_download_options_prompt(config)
edit_download_options_prompt(manager, config)

# Edit Input / Output File Paths
elif action == 2:
edit_input_output_file_paths_prompt(config)
edit_input_output_file_paths_prompt(manager, config)

# Edit Log File Naming / Path
elif action == 3:
edit_log_file_naming_path_prompt(config)
edit_log_file_naming_path_prompt(manager, config)

# Edit File Size Limits
elif action == 4:
edit_file_size_limits_prompt(config)
edit_file_size_limits_prompt(manager, config)

# Edit Ignore Options
elif action == 5:
edit_ignore_options_prompt(config)
edit_ignore_options_prompt(manager, config)

# Edit Runtime Options
elif action == 6:
edit_runtime_options_prompt(config)
edit_runtime_options_prompt(manager, config)

# Edit Sorting Options
elif action == 7:
edit_sort_options_prompt(config)
edit_sort_options_prompt(manager, config)

# Done
elif action == 8:
Expand All @@ -92,7 +92,7 @@ def edit_config_values_prompt(manager: Manager) -> None:
return


def edit_download_options_prompt(config: Dict) -> None:
def edit_download_options_prompt(manager: Manager, config: Dict) -> None:
"""Edit the download options"""
console.clear()
action = inquirer.checkbox(
Expand Down Expand Up @@ -139,7 +139,7 @@ def edit_download_options_prompt(config: Dict) -> None:
config["Download_Options"][key] = True


def edit_input_output_file_paths_prompt(config: Dict) -> None:
def edit_input_output_file_paths_prompt(manager: Manager, config: Dict) -> None:
"""Edit the input / output file paths"""
console.clear()
console.print("Editing Input / Output File Paths")
Expand All @@ -160,7 +160,7 @@ def edit_input_output_file_paths_prompt(config: Dict) -> None:
config['Files']['download_folder'] = Path(download_folder)


def edit_log_file_naming_path_prompt(config: Dict) -> None:
def edit_log_file_naming_path_prompt(manager: Manager, config: Dict) -> None:
"""Edit the log file naming / path"""
console.clear()
console.print("Editing Log File Naming / Path")
Expand Down Expand Up @@ -209,7 +209,7 @@ def edit_log_file_naming_path_prompt(config: Dict) -> None:
config['Logs']['scrape_error_urls_filename'] = scrape_error_urls_filename


def edit_file_size_limits_prompt(config: Dict) -> None:
def edit_file_size_limits_prompt(manager: Manager, config: Dict) -> None:
"""Edit the file size limits"""
console.clear()
console.print("Editing File Size Limits")
Expand Down Expand Up @@ -264,7 +264,7 @@ def edit_file_size_limits_prompt(config: Dict) -> None:
config['File_Size_Limits']['minimum_other_size'] = int(minimum_other_size)


def edit_ignore_options_prompt(config: Dict) -> None:
def edit_ignore_options_prompt(manager: Manager, config: Dict) -> None:
"""Edit the ignore options"""
console.clear()
console.print("Editing Ignore Options")
Expand Down Expand Up @@ -323,7 +323,7 @@ def edit_ignore_options_prompt(config: Dict) -> None:
config["Ignore_Options"]["only_hosts"] = only_hosts


def edit_runtime_options_prompt(config: Dict) -> None:
def edit_runtime_options_prompt(manager: Manager, config: Dict) -> None:
"""Edit the runtime options"""
console.clear()
console.print("Editing Runtime Options")
Expand Down Expand Up @@ -366,7 +366,7 @@ def edit_runtime_options_prompt(config: Dict) -> None:
config['Runtime_Options']['log_level'] = int(log_level)


def edit_sort_options_prompt(config: Dict) -> None:
def edit_sort_options_prompt(manager: Manager, config: Dict) -> None:
"""Edit the sort options"""
console.clear()
console.print("Editing Sort Options")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
version = "5.1.98"
version = "5.1.99"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 53fa85b

Please sign in to comment.