mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 19:01:40 +00:00
fix: normalize artists with no album count
This commit is contained in:
parent
41c2a7da69
commit
1555b827ee
1 changed files with 2 additions and 2 deletions
|
|
@ -279,7 +279,7 @@ const normalizeAlbumArtist = (
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
albumCount: item.stats?.albumartist.albumCount || item.albumCount,
|
albumCount: item.stats?.albumartist?.albumCount || item.albumCount,
|
||||||
backgroundImageUrl: null,
|
backgroundImageUrl: null,
|
||||||
biography: item.biography || null,
|
biography: item.biography || null,
|
||||||
duration: null,
|
duration: null,
|
||||||
|
|
@ -304,7 +304,7 @@ const normalizeAlbumArtist = (
|
||||||
imageUrl: artist?.artistImageUrl || null,
|
imageUrl: artist?.artistImageUrl || null,
|
||||||
name: artist.name,
|
name: artist.name,
|
||||||
})) || null,
|
})) || null,
|
||||||
songCount: item.stats?.albumartist.songCount || item.songCount,
|
songCount: item.stats?.albumartist?.songCount || item.songCount,
|
||||||
userFavorite: item.starred,
|
userFavorite: item.starred,
|
||||||
userRating: item.rating,
|
userRating: item.rating,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue