Fix DevFastAccessCoverArt flag
This commit is contained in:
@@ -15,7 +15,6 @@ const defaultConfig = {
|
||||
welcomeMessage: '',
|
||||
gaTrackingId: '',
|
||||
devActivityPanel: true,
|
||||
devFastAccessCoverArt: false,
|
||||
enableStarRating: true,
|
||||
defaultTheme: 'Dark',
|
||||
defaultLanguage: '',
|
||||
|
||||
@@ -37,7 +37,7 @@ const mapToAudioLists = (item) => {
|
||||
musicSrc: subsonic.streamUrl(trackId),
|
||||
cover: subsonic.getCoverArtUrl(
|
||||
{
|
||||
id: config.devFastAccessCoverArt ? item.albumId : trackId,
|
||||
id: trackId,
|
||||
updatedAt: item.updatedAt,
|
||||
album: item.album,
|
||||
},
|
||||
|
||||
@@ -51,6 +51,7 @@ const getCoverArtUrl = (record, size) => {
|
||||
...(size && { size }),
|
||||
}
|
||||
|
||||
// TODO Move this logic to server. `song` and `album` should have a CoverArtID
|
||||
const lastUpdate = Math.floor(Date.parse(record.updatedAt) / 1000)
|
||||
const id = record.id + '-' + Math.max(lastUpdate, 0).toString(16)
|
||||
if (record.album) {
|
||||
|
||||
Reference in New Issue
Block a user