mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 21:10:12 +02:00
refactor Genre domain type to include serverType and serverId
This commit is contained in:
@@ -430,8 +430,13 @@ const normalizePlaylist = (
|
||||
};
|
||||
};
|
||||
|
||||
const normalizeGenre = (item: z.infer<typeof ndType._response.genre>): Genre => {
|
||||
const normalizeGenre = (
|
||||
item: z.infer<typeof ndType._response.genre>,
|
||||
server: null | ServerListItem,
|
||||
): Genre => {
|
||||
return {
|
||||
_serverId: server?.id || 'unknown',
|
||||
_serverType: ServerType.NAVIDROME,
|
||||
albumCount: undefined,
|
||||
id: item.id,
|
||||
imageUrl: null,
|
||||
|
||||
Reference in New Issue
Block a user