use tags list for Navidrome genres to support counts

This commit is contained in:
jeffvli
2025-12-02 18:37:31 -08:00
parent 854a26e3f4
commit f84506ce01
11 changed files with 100 additions and 23 deletions
@@ -442,18 +442,18 @@ const normalizePlaylist = (
};
const normalizeGenre = (
item: z.infer<typeof ndType._response.genre>,
item: z.infer<typeof ndType._response.genre> & { albumCount?: number; songCount?: number },
server: null | ServerListItem,
): Genre => {
return {
_itemType: LibraryItem.GENRE,
_serverId: server?.id || 'unknown',
_serverType: ServerType.NAVIDROME,
albumCount: null,
albumCount: item.albumCount ?? null,
id: item.id,
imageUrl: null,
name: item.name,
songCount: null,
songCount: item.songCount ?? null,
};
};