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

Commit

Permalink
quick mistake fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Dec 5, 2023
1 parent e36071e commit 08970c8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 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.0.29"
__version__ = "5.0.31"
3 changes: 3 additions & 0 deletions cyberdrop_dl/utils/transfer/first_time_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
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.0.29"
version = "5.0.31"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 08970c8

Please sign in to comment.