Use more conventional Redis key separators for album cache
This commit is contained in:
parent
a471b77c55
commit
4a2ac29d30
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ class ArtCacheEntry(TypedDict):
|
||||||
def calc_album_key(song: CurrentSongResponse) -> str:
|
def calc_album_key(song: CurrentSongResponse) -> str:
|
||||||
artist = song.get("albumartist", song.get("artist", "Unknown Artist"))
|
artist = song.get("albumartist", song.get("artist", "Unknown Artist"))
|
||||||
album = song.get("album", "Unknown Album")
|
album = song.get("album", "Unknown Album")
|
||||||
return f"{artist}:-:-:{album}"
|
return ":".join(t.replace(":", "-") for t in (artist, album))
|
||||||
|
|
||||||
|
|
||||||
def calc_track_key(song: CurrentSongResponse) -> str:
|
def calc_track_key(song: CurrentSongResponse) -> str:
|
||||||
|
|
Loading…
Reference in a new issue