mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
Adjust subsonic genre normalization
This commit is contained in:
@@ -72,6 +72,8 @@ const normalizeSong = (
|
|||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
id: item.genre,
|
id: item.genre,
|
||||||
|
imageUrl: null,
|
||||||
|
itemType: LibraryItem.GENRE,
|
||||||
name: item.genre,
|
name: item.genre,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@@ -152,7 +154,16 @@ const normalizeAlbum = (
|
|||||||
backdropImageUrl: null,
|
backdropImageUrl: null,
|
||||||
createdAt: item.created,
|
createdAt: item.created,
|
||||||
duration: item.duration,
|
duration: item.duration,
|
||||||
genres: item.genre ? [{ id: item.genre, name: item.genre }] : [],
|
genres: item.genre
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
id: item.genre,
|
||||||
|
imageUrl: null,
|
||||||
|
itemType: LibraryItem.GENRE,
|
||||||
|
name: item.genre,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: [],
|
||||||
id: item.id,
|
id: item.id,
|
||||||
imagePlaceholderUrl: null,
|
imagePlaceholderUrl: null,
|
||||||
imageUrl,
|
imageUrl,
|
||||||
|
|||||||
Reference in New Issue
Block a user