Add card placeholder images

This commit is contained in:
jeffvli 2022-12-30 21:31:13 -08:00
parent b3d95f765c
commit 1f232fa4da
5 changed files with 15 additions and 5 deletions

View file

@ -636,7 +636,11 @@ const normalizeAlbum = (item: JFAlbum, server: ServerListItem, imageSize?: numbe
duration: item.RunTimeTicks / 10000000,
genres: item.GenreItems?.map((entry) => ({ id: entry.Id, name: entry.Name })),
id: item.Id,
imagePlaceholderUrl: null,
imagePlaceholderUrl: getAlbumCoverArtUrl({
baseUrl: server.url,
item,
size: 1,
}),
imageUrl: getAlbumCoverArtUrl({
baseUrl: server.url,
item,