From 12b66e5fa0333aca0662afdb1792041abf8d0abc Mon Sep 17 00:00:00 2001 From: jeffvli Date: Mon, 14 Oct 2024 19:36:51 -0700 Subject: [PATCH] Convert subsonic coverart property to string (#795) --- src/renderer/api/subsonic/subsonic-normalize.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/api/subsonic/subsonic-normalize.ts b/src/renderer/api/subsonic/subsonic-normalize.ts index f3cfc2b5..42d257d9 100644 --- a/src/renderer/api/subsonic/subsonic-normalize.ts +++ b/src/renderer/api/subsonic/subsonic-normalize.ts @@ -43,7 +43,7 @@ const normalizeSong = ( const imageUrl = getCoverArtUrl({ baseUrl: server?.url, - coverArtId: item.coverArt, + coverArtId: item.coverArt?.toString(), credential: server?.credential, size: size || 300, }) || null; @@ -135,7 +135,7 @@ const normalizeAlbumArtist = ( const imageUrl = getCoverArtUrl({ baseUrl: server?.url, - coverArtId: item.coverArt, + coverArtId: item.coverArt?.toString(), credential: server?.credential, size: imageSize || 100, }) || null; @@ -170,7 +170,7 @@ const normalizeAlbum = ( const imageUrl = getCoverArtUrl({ baseUrl: server?.url, - coverArtId: item.coverArt, + coverArtId: item.coverArt?.toString(), credential: server?.credential, size: imageSize || 300, }) || null; @@ -238,7 +238,7 @@ const normalizePlaylist = ( imagePlaceholderUrl: null, imageUrl: getCoverArtUrl({ baseUrl: server?.url, - coverArtId: item.coverArt, + coverArtId: item.coverArt?.toString(), credential: server?.credential, size: 300, }),