feat(ratings): improve cover art URL retrieval with enhanced item properties

This commit is contained in:
Платон Петров 2026-06-13 17:22:37 +03:00
parent b564acfa18
commit 3444fc1871

View File

@ -62,8 +62,10 @@ const UserRatingItems = ({ match }) => {
const title = `${userName} · ${typeLabel} · ${rating}★`
const getCoverUrl = (item) => {
const coverArtId = type === 'album' ? item.id : item.albumId
return subsonic.getCoverArtUrl({ id: coverArtId, updatedAt: item.updatedAt }, 40)
return subsonic.getCoverArtUrl(
{ id: item.id, albumArtist: type === 'album' ? item.artist : undefined, album: type === 'song' ? item.name : undefined, updatedAt: item.updatedAt },
40,
)
}
return (