Replace default navidrome artist image placeholder path

This commit is contained in:
jeffvli 2023-01-15 22:08:50 -08:00
parent 88591697a2
commit d23ae2a8db

View file

@ -598,6 +598,9 @@ const normalizeAlbum = (item: NDAlbum, server: ServerListItem, imageSize?: numbe
}; };
const normalizeAlbumArtist = (item: NDAlbumArtist, server: ServerListItem): AlbumArtist => { const normalizeAlbumArtist = (item: NDAlbumArtist, server: ServerListItem): AlbumArtist => {
const imageUrl =
item.largeImageUrl === '/app/artist-placeholder.webp' ? null : item.largeImageUrl;
return { return {
albumCount: item.albumCount, albumCount: item.albumCount,
backgroundImageUrl: null, backgroundImageUrl: null,
@ -605,7 +608,7 @@ const normalizeAlbumArtist = (item: NDAlbumArtist, server: ServerListItem): Albu
duration: null, duration: null,
genres: item.genres, genres: item.genres,
id: item.id, id: item.id,
imageUrl: item.largeImageUrl || null, imageUrl: imageUrl || null,
itemType: LibraryItem.ALBUM_ARTIST, itemType: LibraryItem.ALBUM_ARTIST,
lastPlayedAt: item.playDate.includes('0001-') ? null : item.playDate, lastPlayedAt: item.playDate.includes('0001-') ? null : item.playDate,
name: item.name, name: item.name,