diff --git a/src/renderer/features/item-details/components/item-details-modal.tsx b/src/renderer/features/item-details/components/item-details-modal.tsx index e6bba6be..aa96d959 100644 --- a/src/renderer/features/item-details/components/item-details-modal.tsx +++ b/src/renderer/features/item-details/components/item-details-modal.tsx @@ -81,7 +81,7 @@ const formatArtists = (artists: null | RelatedArtist[] | undefined) => {artist.name || '—'} ) : ( - + {artist.name || '-'} )} diff --git a/src/shared/api/jellyfin/jellyfin-normalize.ts b/src/shared/api/jellyfin/jellyfin-normalize.ts index 5a87d981..7e692ba7 100644 --- a/src/shared/api/jellyfin/jellyfin-normalize.ts +++ b/src/shared/api/jellyfin/jellyfin-normalize.ts @@ -127,12 +127,18 @@ const getPlaylistCoverArtUrl = (args: { baseUrl: string; item: JFPlaylist; size: type AlbumOrSong = z.infer | z.infer; +const KEYS_TO_OMIT = new Set(['AlbumArtist', 'Artist']); + const getPeople = (item: AlbumOrSong): null | Record => { if (item.People) { const participants: Record = {}; for (const person of item.People) { const key = person.Type || ''; + if (KEYS_TO_OMIT.has(key)) { + continue; + } + const item: RelatedArtist = { // for other roles, we just want to display this and not filter. // filtering (and links) would require a separate field, PersonIds