Fix UI artwork id creation
This commit is contained in:
parent
a087f57d2d
commit
2923f01cd9
1 changed files with 2 additions and 4 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue