Fix artist image not caching on browser

This commit is contained in:
Deluan
2023-01-20 21:28:44 -05:00
parent b9934799ec
commit 33f033beba
4 changed files with 32 additions and 31 deletions
+3 -1
View File
@@ -54,8 +54,10 @@ const getCoverArtUrl = (record, size) => {
// TODO Move this logic to server. `song` and `album` should have a CoverArtID
if (record.album) {
return baseUrl(url('getCoverArt', 'mf-' + record.id, options))
} else {
} else if (record.artist) {
return baseUrl(url('getCoverArt', 'al-' + record.id, options))
} else {
return baseUrl(url('getCoverArt', 'ar-' + record.id, options))
}
}