Return similar artists on artist detail

This commit is contained in:
jeffvli 2023-12-05 18:51:30 -08:00
parent 8ce2a99d37
commit 3c691d23d9

View File

@ -193,7 +193,10 @@ export const SubsonicController: ControllerEndpoint = {
albums: artist.album.map((album) =>
subsonicNormalize.album(album, apiClientProps.server),
),
artistInfo,
similarArtists:
artistInfo?.similarArtist?.map((artist) =>
subsonicNormalize.albumArtist(artist, apiClientProps.server, 300),
) || null,
};
},
getAlbumArtistList: async (args) => {