diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py index 748aec229..caceeef8c 100644 --- a/cyberdrop_dl/__init__.py +++ b/cyberdrop_dl/__init__.py @@ -1 +1 @@ -__version__ = "5.0.29" +__version__ = "5.0.31" diff --git a/cyberdrop_dl/utils/transfer/first_time_setup.py b/cyberdrop_dl/utils/transfer/first_time_setup.py index 8a9357830..1c2dbab68 100644 --- a/cyberdrop_dl/utils/transfer/first_time_setup.py +++ b/cyberdrop_dl/utils/transfer/first_time_setup.py @@ -80,8 +80,11 @@ def check_cache_for_moved(self, cache_file: Path) -> bool: def update_cache(self, cache_file: Path) -> None: """Updates the cache to reflect the new location""" + cache_file.parent.mkdir(parents=True, exist_ok=True) with open(cache_file, 'r') as yaml_file: cache = yaml.load(yaml_file.read(), Loader=yaml.FullLoader) + if cache is None: + cache = {"first_startup_completed": False} cache['first_startup_completed'] = True with open(cache_file, 'w') as yaml_file: yaml.dump(cache, yaml_file) diff --git a/pyproject.toml b/pyproject.toml index c5ee7ce13..470960514 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cyberdrop-dl" -version = "5.0.29" +version = "5.0.31" description = "Bulk downloader for multiple file hosts" authors = ["Jules Winnfield "] readme = "README.md"