mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
navidrome album artist covoer art bodge
This commit is contained in:
@@ -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 New Issue
Block a user