Skip to content

Commit

Permalink
Convert subsonic coverart property to string (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffvli committed Oct 15, 2024
1 parent 7e78478 commit 12b66e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/renderer/api/subsonic/subsonic-normalize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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,
}),
Expand Down

0 comments on commit 12b66e5

Please sign in to comment.