navidrome album artist covoer art bodge
This commit is contained in:
parent
aa89c5e80e
commit
b30fadd149
1 changed files with 10 additions and 1 deletions
|
@ -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),
|
||||||
|
|
Reference in a new issue