fix(jellyfin): mark genre as null if genreitems are not present

This commit is contained in:
Kendall Garner
2026-07-18 11:09:24 -07:00
parent 7cff72910e
commit 2cab569c23
@@ -173,7 +173,8 @@ const normalizeSong = (
: undefined, : undefined,
} }
: null, : null,
genres: item.GenreItems?.map((entry) => ({ genres:
item.GenreItems?.map((entry) => ({
_itemType: LibraryItem.GENRE, _itemType: LibraryItem.GENRE,
_serverId: server?.id || '', _serverId: server?.id || '',
_serverType: ServerType.JELLYFIN, _serverType: ServerType.JELLYFIN,
@@ -183,7 +184,7 @@ const normalizeSong = (
imageUrl: null, imageUrl: null,
name: entry.Name, name: entry.Name,
songCount: null, songCount: null,
})), })) || null,
id: item.Id, id: item.Id,
imageId: getSongImageId(item), imageId: getSongImageId(item),
imageUrl: null, imageUrl: null,