mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-21 09:56:43 +02:00
fix(jellyfin): mark genre as null if genreitems are not present
This commit is contained in:
@@ -173,17 +173,18 @@ const normalizeSong = (
|
||||
: undefined,
|
||||
}
|
||||
: null,
|
||||
genres: item.GenreItems?.map((entry) => ({
|
||||
_itemType: LibraryItem.GENRE,
|
||||
_serverId: server?.id || '',
|
||||
_serverType: ServerType.JELLYFIN,
|
||||
albumCount: null,
|
||||
id: entry.Id,
|
||||
imageId: null,
|
||||
imageUrl: null,
|
||||
name: entry.Name,
|
||||
songCount: null,
|
||||
})),
|
||||
genres:
|
||||
item.GenreItems?.map((entry) => ({
|
||||
_itemType: LibraryItem.GENRE,
|
||||
_serverId: server?.id || '',
|
||||
_serverType: ServerType.JELLYFIN,
|
||||
albumCount: null,
|
||||
id: entry.Id,
|
||||
imageId: null,
|
||||
imageUrl: null,
|
||||
name: entry.Name,
|
||||
songCount: null,
|
||||
})) || null,
|
||||
id: item.Id,
|
||||
imageId: getSongImageId(item),
|
||||
imageUrl: null,
|
||||
|
||||
Reference in New Issue
Block a user