Adjust subsonic genre normalization
This commit is contained in:
parent
b35d3c3256
commit
80fb844d3c
1 changed files with 12 additions and 1 deletions
|
@ -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 a new issue