Support local navidrome album artist image (#116)
This commit is contained in:
parent
d6e628099c
commit
f97e855f51
1 changed files with 9 additions and 0 deletions
|
@ -140,6 +140,15 @@ const getAlbumArtistDetail = async (
|
||||||
...res.body.data,
|
...res.body.data,
|
||||||
...(artistInfoRes.status === 200 && {
|
...(artistInfoRes.status === 200 && {
|
||||||
similarArtists: artistInfoRes.body.artistInfo.similarArtist,
|
similarArtists: artistInfoRes.body.artistInfo.similarArtist,
|
||||||
|
...(!res.body.data.largeImageUrl && {
|
||||||
|
largeImageUrl: artistInfoRes.body.artistInfo.largeImageUrl,
|
||||||
|
}),
|
||||||
|
...(!res.body.data.mediumImageUrl && {
|
||||||
|
largeImageUrl: artistInfoRes.body.artistInfo.mediumImageUrl,
|
||||||
|
}),
|
||||||
|
...(!res.body.data.smallImageUrl && {
|
||||||
|
largeImageUrl: artistInfoRes.body.artistInfo.smallImageUrl,
|
||||||
|
}),
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
apiClientProps.server,
|
apiClientProps.server,
|
||||||
|
|
Reference in a new issue