mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
fix album artist name in Subsonic song normalization
This commit is contained in:
@@ -137,14 +137,19 @@ const normalizeSong = (
|
||||
discTitleMap?: Map<number, string>,
|
||||
): Song => {
|
||||
const participants = getParticipants(item);
|
||||
const albumArtistsList = getArtistList(item.albumArtists, item.artistId, item.artist);
|
||||
const albumArtistName =
|
||||
item.albumArtists?.length > 0
|
||||
? item.albumArtists.map((a) => a.name).join(', ')
|
||||
: item.artist || '';
|
||||
|
||||
return {
|
||||
_itemType: LibraryItem.SONG,
|
||||
_serverId: server?.id || 'unknown',
|
||||
_serverType: ServerType.SUBSONIC,
|
||||
album: item.album || '',
|
||||
albumArtistName: item.artist || '',
|
||||
albumArtists: getArtistList(item.albumArtists, item.artistId, item.artist),
|
||||
albumArtistName,
|
||||
albumArtists: albumArtistsList,
|
||||
albumId: item.albumId?.toString() || '',
|
||||
artistName: item.artist || '',
|
||||
artists: getArtistList(item.artists, item.artistId, item.artist, participants),
|
||||
|
||||
Reference in New Issue
Block a user