mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 04:50:12 +02:00
fix: normalize artists with no album count
This commit is contained in:
@@ -279,7 +279,7 @@ const normalizeAlbumArtist = (
|
||||
}
|
||||
|
||||
return {
|
||||
albumCount: item.stats?.albumartist.albumCount || item.albumCount,
|
||||
albumCount: item.stats?.albumartist?.albumCount || item.albumCount,
|
||||
backgroundImageUrl: null,
|
||||
biography: item.biography || null,
|
||||
duration: null,
|
||||
@@ -304,7 +304,7 @@ const normalizeAlbumArtist = (
|
||||
imageUrl: artist?.artistImageUrl || null,
|
||||
name: artist.name,
|
||||
})) || null,
|
||||
songCount: item.stats?.albumartist.songCount || item.songCount,
|
||||
songCount: item.stats?.albumartist?.songCount || item.songCount,
|
||||
userFavorite: item.starred,
|
||||
userRating: item.rating,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user