From 56cc30b80ee2f98b5ae9d64936a18eee5f10e5b6 Mon Sep 17 00:00:00 2001 From: ChuckBuilds <33324927+ChuckBuilds@users.noreply.github.com> Date: Sun, 25 May 2025 21:38:15 -0500 Subject: [PATCH] address name type error in art cache --- src/music_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/music_manager.py b/src/music_manager.py index 185c30ce..8cff46b6 100644 --- a/src/music_manager.py +++ b/src/music_manager.py @@ -600,6 +600,10 @@ class MusicManager: if perform_full_refresh_this_cycle : # This is always true in this block self.last_periodic_refresh_time = time.time() + # --- Define cache variables after snapshot is finalized --- + with self.track_info_lock: # Ensure thread-safe access to shared cache attributes + art_url_currently_in_cache = self.last_album_art_url + image_currently_in_cache = self.album_art_image else: # Not a full refresh cycle (i.e., force_clear=False from DC, AND periodic timer not elapsed, AND no prior event demanding full refresh) # This path means we are just doing a regular, non-clearing display update.