From: Marcel van der Veldt Date: Mon, 15 Apr 2024 21:43:51 +0000 (+0200) Subject: fix cache key X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=af3abfa8e962354fef46249dac5e0a9d737f1741;p=music-assistant-server.git fix cache key --- diff --git a/music_assistant/server/controllers/media/playlists.py b/music_assistant/server/controllers/media/playlists.py index a352aed6..cafd7f57 100644 --- a/music_assistant/server/controllers/media/playlists.py +++ b/music_assistant/server/controllers/media/playlists.py @@ -349,8 +349,9 @@ class PlaylistController(MediaControllerBase[Playlist]): # if this is a complete track object, pre-cache it as # that will save us an (expensive) lookup later if item.image and item.artist_str and item.album and provider.domain != "builtin": - cache_key = f"provider_item.track.{provider.lookup_key}.{item_id}" - await self.mass.cache.set(cache_key, item.to_dict()) + await self.mass.cache.set( + f"provider_item.track.{provider.lookup_key}.{item_id}", item.to_dict() + ) # store (serializable items) in cache if cache_checksum != "no_cache": self.mass.create_task(