Support local navidrome album artist image (#116)

This commit is contained in:
jeffvli 2023-06-11 20:02:14 -07:00
parent d6e628099c
commit f97e855f51

View file

@ -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,