Fix artist image not caching on browser
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user