From dc9989bbac8c9c509d4c67282ac6a3565181e02b Mon Sep 17 00:00:00 2001 From: Jules-WinnfieldX Date: Mon, 4 Dec 2023 10:46:46 -0700 Subject: [PATCH] Fix paths not updating on same run. --- cyberdrop_dl/__init__.py | 2 +- cyberdrop_dl/main.py | 2 ++ cyberdrop_dl/managers/config_manager.py | 1 - pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index ad5daca8a..31d9a906f 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.0.17" +__version__ = "5.0.18" diff --git a/cyberdrop_dl/main.py b/cyberdrop_dl/main.py index 570f92c47..7a428c64c 100644 --- a/cyberdrop_dl/main.py +++ b/cyberdrop_dl/main.py @@ -57,6 +57,8 @@ async def director(manager: Manager) -> None: """Runs the program and handles the UI""" configs = manager.config_manager.get_configs() configs_ran = [] + manager.path_manager.startup() + while True: if manager.args_manager.all_configs: configs_to_run = list(set(configs) - set(configs_ran)) diff --git a/cyberdrop_dl/managers/config_manager.py b/cyberdrop_dl/managers/config_manager.py index 94d6f4260..5067e3ce9 100644 --- a/cyberdrop_dl/managers/config_manager.py +++ b/cyberdrop_dl/managers/config_manager.py @@ -123,7 +123,6 @@ def _verify_settings_config(self) -> None: self.global_settings_data['Rate_Limiting_Options']['rate_limit'] = int(self.global_settings_data['Rate_Limiting_Options']['rate_limit']) self.global_settings_data['Rate_Limiting_Options']['read_timeout'] = int(self.global_settings_data['Rate_Limiting_Options']['read_timeout']) - save_data = copy.deepcopy(self.settings_data) save_data['Files']['input_file'] = str(save_data['Files']['input_file']) save_data['Files']['download_folder'] = str(save_data['Files']['download_folder']) diff --git a/pyproject.toml b/pyproject.toml index 2e86f61ea..309b07127 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.0.17" +version = "5.0.18" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"