mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Convert subsonic coverart property to string (#795)
This commit is contained in:
@@ -43,7 +43,7 @@ const normalizeSong = (
|
|||||||
const imageUrl =
|
const imageUrl =
|
||||||
getCoverArtUrl({
|
getCoverArtUrl({
|
||||||
baseUrl: server?.url,
|
baseUrl: server?.url,
|
||||||
coverArtId: item.coverArt,
|
coverArtId: item.coverArt?.toString(),
|
||||||
credential: server?.credential,
|
credential: server?.credential,
|
||||||
size: size || 300,
|
size: size || 300,
|
||||||
}) || null;
|
}) || null;
|
||||||
@@ -135,7 +135,7 @@ const normalizeAlbumArtist = (
|
|||||||
const imageUrl =
|
const imageUrl =
|
||||||
getCoverArtUrl({
|
getCoverArtUrl({
|
||||||
baseUrl: server?.url,
|
baseUrl: server?.url,
|
||||||
coverArtId: item.coverArt,
|
coverArtId: item.coverArt?.toString(),
|
||||||
credential: server?.credential,
|
credential: server?.credential,
|
||||||
size: imageSize || 100,
|
size: imageSize || 100,
|
||||||
}) || null;
|
}) || null;
|
||||||
@@ -170,7 +170,7 @@ const normalizeAlbum = (
|
|||||||
const imageUrl =
|
const imageUrl =
|
||||||
getCoverArtUrl({
|
getCoverArtUrl({
|
||||||
baseUrl: server?.url,
|
baseUrl: server?.url,
|
||||||
coverArtId: item.coverArt,
|
coverArtId: item.coverArt?.toString(),
|
||||||
credential: server?.credential,
|
credential: server?.credential,
|
||||||
size: imageSize || 300,
|
size: imageSize || 300,
|
||||||
}) || null;
|
}) || null;
|
||||||
@@ -238,7 +238,7 @@ const normalizePlaylist = (
|
|||||||
imagePlaceholderUrl: null,
|
imagePlaceholderUrl: null,
|
||||||
imageUrl: getCoverArtUrl({
|
imageUrl: getCoverArtUrl({
|
||||||
baseUrl: server?.url,
|
baseUrl: server?.url,
|
||||||
coverArtId: item.coverArt,
|
coverArtId: item.coverArt?.toString(),
|
||||||
credential: server?.credential,
|
credential: server?.credential,
|
||||||
size: 300,
|
size: 300,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user