From b99a6510db1840df6c838b08f2742ca4dcc1033e Mon Sep 17 00:00:00 2001 From: Yonokid <37304577+Yonokid@users.noreply.github.com> Date: Tue, 29 Jul 2025 12:49:30 -0400 Subject: [PATCH] Update song_hash.py --- libs/song_hash.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/song_hash.py b/libs/song_hash.py index b863d43..278ff8f 100644 --- a/libs/song_hash.py +++ b/libs/song_hash.py @@ -24,6 +24,8 @@ class DiffHashesDecoder(json.JSONDecoder): super().__init__(object_hook=diff_hashes_object_hook, *args, **kwargs) def build_song_hashes(output_dir=Path("cache")): + if not output_dir.exists(): + output_dir.mkdir() song_hashes: dict[str, list[dict]] = dict() path_to_hash: dict[str, str] = dict() # New index for O(1) path lookups