mirror of
https://github.com/navidrome/navidrome.git
synced 2026-03-04 06:35:52 +00:00
Fix UI artwork id creation
This commit is contained in:
parent
a087f57d2d
commit
2923f01cd9
@ -51,10 +51,8 @@ const getCoverArtUrl = (record, size) => {
|
||||
...(size && { size }),
|
||||
}
|
||||
|
||||
const lastUpdate = Math.floor(Date.parse(record.updatedAt) / 1000).toString(
|
||||
16
|
||||
)
|
||||
const id = record.id + '-' + lastUpdate
|
||||
const lastUpdate = Math.floor(Date.parse(record.updatedAt) / 1000)
|
||||
const id = record.id + '-' + Math.max(lastUpdate, 0).toString(16)
|
||||
if (record.album) {
|
||||
return baseUrl(url('getCoverArt', 'mf-' + id, options))
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user