mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-13 20:10:07 +02:00
null songCount and albumCount in genre type
This commit is contained in:
@@ -180,9 +180,11 @@ const normalizeSong = (
|
||||
_itemType: LibraryItem.GENRE,
|
||||
_serverId: server?.id || 'unknown',
|
||||
_serverType: ServerType.NAVIDROME,
|
||||
albumCount: null,
|
||||
id: genre.id,
|
||||
imageUrl: null,
|
||||
name: genre.name,
|
||||
songCount: null,
|
||||
})),
|
||||
id,
|
||||
imagePlaceholderUrl,
|
||||
@@ -298,9 +300,11 @@ const normalizeAlbum = (
|
||||
_itemType: LibraryItem.GENRE,
|
||||
_serverId: server?.id || 'unknown',
|
||||
_serverType: ServerType.NAVIDROME,
|
||||
albumCount: null,
|
||||
id: genre.id,
|
||||
imageUrl: null,
|
||||
name: genre.name,
|
||||
songCount: null,
|
||||
})),
|
||||
id: item.id,
|
||||
imagePlaceholderUrl,
|
||||
@@ -378,9 +382,11 @@ const normalizeAlbumArtist = (
|
||||
_itemType: LibraryItem.GENRE,
|
||||
_serverId: server?.id || 'unknown',
|
||||
_serverType: ServerType.NAVIDROME,
|
||||
albumCount: null,
|
||||
id: genre.id,
|
||||
imageUrl: null,
|
||||
name: genre.name,
|
||||
songCount: null,
|
||||
})),
|
||||
id: item.id,
|
||||
imageUrl: imageUrl || null,
|
||||
@@ -444,11 +450,11 @@ const normalizeGenre = (
|
||||
_itemType: LibraryItem.GENRE,
|
||||
_serverId: server?.id || 'unknown',
|
||||
_serverType: ServerType.NAVIDROME,
|
||||
albumCount: undefined,
|
||||
albumCount: null,
|
||||
id: item.id,
|
||||
imageUrl: null,
|
||||
name: item.name,
|
||||
songCount: undefined,
|
||||
songCount: null,
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user