Fix UI artwork id creation
This commit is contained in:
@@ -51,10 +51,8 @@ const getCoverArtUrl = (record, size) => {
|
|||||||
...(size && { size }),
|
...(size && { size }),
|
||||||
}
|
}
|
||||||
|
|
||||||
const lastUpdate = Math.floor(Date.parse(record.updatedAt) / 1000).toString(
|
const lastUpdate = Math.floor(Date.parse(record.updatedAt) / 1000)
|
||||||
16
|
const id = record.id + '-' + Math.max(lastUpdate, 0).toString(16)
|
||||||
)
|
|
||||||
const id = record.id + '-' + lastUpdate
|
|
||||||
if (record.album) {
|
if (record.album) {
|
||||||
return baseUrl(url('getCoverArt', 'mf-' + id, options))
|
return baseUrl(url('getCoverArt', 'mf-' + id, options))
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user