Use song-specific cover and add placeholder (#6)

This commit is contained in:
jeffvli 2023-01-01 14:16:57 -08:00
parent cdbd3f8c7b
commit fecaa2e6b8
5 changed files with 19 additions and 3 deletions

View file

@ -604,6 +604,7 @@ const normalizeSong = (
duration: item.RunTimeTicks / 10000000,
genres: item.GenreItems.map((entry: any) => ({ id: entry.Id, name: entry.Name })),
id: item.Id,
imagePlaceholderUrl: getSongCoverArtUrl({ baseUrl: server.url, item, size: 1 }),
imageUrl: getSongCoverArtUrl({ baseUrl: server.url, item, size: imageSize || 300 }),
isFavorite: (item.UserData && item.UserData.IsFavorite) || false,
lastPlayedAt: null,