diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index b8f2c2d05..ee3bf449a 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.2.46" +__version__ = "5.2.47" diff --git a/cyberdrop_dl/managers/config_manager.py b/cyberdrop_dl/managers/config_manager.py index f3cf15d31..5d8fbdfd4 100644 --- a/cyberdrop_dl/managers/config_manager.py +++ b/cyberdrop_dl/managers/config_manager.py @@ -118,6 +118,9 @@ def _verify_settings_config(self) -> None: self.settings_data['File_Size_Limits']['minimum_image_size'] = int(self.settings_data['File_Size_Limits']['minimum_image_size']) self.settings_data['File_Size_Limits']['minimum_video_size'] = int(self.settings_data['File_Size_Limits']['minimum_video_size']) self.settings_data['File_Size_Limits']['minimum_other_size'] = int(self.settings_data['File_Size_Limits']['minimum_other_size']) + + self.settings_data['Runtime_Options']['ui_refresh_rate'] = int(self.settings_data['Runtime_Options']['ui_refresh_rate']) + self.settings_data['Runtime_Options']['log_level'] = int(self.settings_data['Runtime_Options']['log_level']) self.global_settings_data['General']['max_file_name_length'] = int(self.global_settings_data['General']['max_file_name_length']) self.global_settings_data['General']['max_folder_name_length'] = int(self.global_settings_data['General']['max_folder_name_length']) diff --git a/cyberdrop_dl/ui/prompts/settings_user_prompts.py b/cyberdrop_dl/ui/prompts/settings_user_prompts.py index d18e52e9b..73c382de0 100644 --- a/cyberdrop_dl/ui/prompts/settings_user_prompts.py +++ b/cyberdrop_dl/ui/prompts/settings_user_prompts.py @@ -357,6 +357,14 @@ def edit_runtime_options_prompt(manager: Manager, config: Dict) -> None: vi_mode=manager.vi_mode, ).execute() + log_level = inquirer.number( + message="Enter the desired UI refresh rate:", + default=int(config['Runtime_Options']['ui_refresh_rate']), + validate=NumberValidator(), + long_instruction="10 is the default", + vi_mode=manager.vi_mode, + ).execute() + for key in config["Runtime_Options"]: config["Runtime_Options"][key] = False @@ -364,6 +372,7 @@ def edit_runtime_options_prompt(manager: Manager, config: Dict) -> None: config["Runtime_Options"][key] = True config['Runtime_Options']['log_level'] = int(log_level) + config['Runtime_Options']['ui_refresh_rate'] = int(log_level) def edit_sort_options_prompt(manager: Manager, config: Dict) -> None: diff --git a/pyproject.toml b/pyproject.toml index 3ab5541cb..876921a90 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.2.46" +version = "5.2.47" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"