mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-21 18:06:30 +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,
|
: undefined,
|
||||||
}
|
}
|
||||||
: null,
|
: null,
|
||||||
genres: item.GenreItems?.map((entry) => ({
|
genres:
|
||||||
_itemType: LibraryItem.GENRE,
|
item.GenreItems?.map((entry) => ({
|
||||||
_serverId: server?.id || '',
|
_itemType: LibraryItem.GENRE,
|
||||||
_serverType: ServerType.JELLYFIN,
|
_serverId: server?.id || '',
|
||||||
albumCount: null,
|
_serverType: ServerType.JELLYFIN,
|
||||||
id: entry.Id,
|
albumCount: null,
|
||||||
imageId: null,
|
id: entry.Id,
|
||||||
imageUrl: null,
|
imageId: null,
|
||||||
name: entry.Name,
|
imageUrl: null,
|
||||||
songCount: null,
|
name: entry.Name,
|
||||||
})),
|
songCount: null,
|
||||||
|
})) || null,
|
||||||
id: item.Id,
|
id: item.Id,
|
||||||
imageId: getSongImageId(item),
|
imageId: getSongImageId(item),
|
||||||
imageUrl: null,
|
imageUrl: null,
|
||||||
|
|||||||
Reference in New Issue
Block a user