navidrome album artist covoer art bodge

This commit is contained in:
Kendall Garner 2024-05-29 02:53:41 -07:00
parent aa89c5e80e
commit b30fadd149
No known key found for this signature in database
GPG key ID: 18D2767419676C87

View file

@ -193,7 +193,16 @@ const getAlbumArtistList = async (args: AlbumArtistListArgs): Promise<AlbumArtis
return { return {
items: res.body.data.map((albumArtist) => items: res.body.data.map((albumArtist) =>
ndNormalize.albumArtist(albumArtist, apiClientProps.server), // Navidrome native API will return only external URL small/medium/large
// image URL. Set large image to undefined to force `albumArtist` to use
// /rest/getCoverArt.view?id=ar-...
ndNormalize.albumArtist(
{
...albumArtist,
largeImageUrl: undefined,
},
apiClientProps.server,
),
), ),
startIndex: query.startIndex, startIndex: query.startIndex,
totalRecordCount: Number(res.body.headers.get('x-total-count') || 0), totalRecordCount: Number(res.body.headers.get('x-total-count') || 0),