Add album detail list view (#1681)

This commit is contained in:
Jeff
2026-02-09 21:56:08 -08:00
committed by GitHub
parent 397610d8ab
commit f39a7f8d6f
79 changed files with 3462 additions and 364 deletions
@@ -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),
+1 -1
View File
@@ -139,7 +139,7 @@ export const getClientType = (): string => {
}
};
export const SEPARATOR_STRING = ' · ';
export const SEPARATOR_STRING = ' ';
export const sortSongList = (songs: Song[], sortBy: SongListSort, sortOrder: SortOrder) => {
let results: Song[] = songs;