From 657d94325d1e64d878c6688ef67730a5bd329153 Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Mon, 4 Dec 2023 13:05:12 -0700 Subject: [PATCH] Fix setting of variables to false --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/ui/prompts/settings_user_prompts.py | 9 +++++++++ pyproject.toml | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 0009d362e..ba80b5202 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.0.24" +__version__ = "5.0.25" diff --git a/cyberdrop_dl/ui/prompts/settings_user_prompts.py b/cyberdrop_dl/ui/prompts/settings_user_prompts.py index 980cf7c91..471cf808c 100644 --- a/cyberdrop_dl/ui/prompts/settings_user_prompts.py +++ b/cyberdrop_dl/ui/prompts/settings_user_prompts.py @@ -125,6 +125,9 @@ def edit_download_options_prompt(config: Dict) -> None: ], long_instruction="ARROW KEYS: Navigate | TAB: Select | ENTER: Confirm" ).execute() + for key in config["Download_Options"].keys(): + config["Download_Options"][key] = False + for key in action: config["Download_Options"][key] = True @@ -265,6 +268,9 @@ def edit_ignore_options_prompt(config: Dict) -> None: ], long_instruction="ARROW KEYS: Move | TAB: Select | ENTER: Confirm", ).execute() + for key in config["Ignore_Options"].keys(): + config["Ignore_Options"][key] = False + for key in action: config["Ignore_Options"][key] = True @@ -318,6 +324,9 @@ def edit_runtime_options_prompt(config: Dict) -> None: ], long_instruction="ARROW KEYS: Move | TAB: Select | ENTER: Confirm", ).execute() + for key in config["Runtime_Options"].keys(): + config["Runtime_Options"][key] = False + for key in action: config["Runtime_Options"][key] = True diff --git a/pyproject.toml b/pyproject.toml index dac05d27d..1a1d64ae4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.0.24" +version = "5.0.25" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"