mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-18 07:30:29 +00:00
feat(ratings): improve cover art URL retrieval with enhanced item properties
This commit is contained in:
parent
b564acfa18
commit
3444fc1871
@ -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 (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user