From f542895839391fb2bb1f9b40e42606549034595f Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 23 Nov 2021 02:52:01 -0800 Subject: [PATCH] Various api fixes - Fix undefined genre and artist on album returns - Add playcount to album --- src/api/api.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api/api.ts b/src/api/api.ts index 965583f..16b5d03 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -409,9 +409,7 @@ export const getArtist = async (options: { id: string }) => { biography: infoData.artistInfo2.biography, lastFmUrl: infoData.artistInfo2.lastFmUrl, externalImageUrl: infoData.artistInfo2.largeImageUrl, - similarArtist: (infoData.artistInfo2.similarArtist || []).map((entry: any) => - normalizeArtist(entry) - ), + similarArtist: infoData.artistInfo2.similarArtist, }); };