diff --git a/src/views/detail.js b/src/views/detail.js index 9e157b8..f24bf8e 100644 --- a/src/views/detail.js +++ b/src/views/detail.js @@ -396,6 +396,9 @@ export async function loadAlbumDetail(album) { const totalMin = Math.round(songs.reduce((s,t) => s+(t.duration||0), 0) / 60); document.getElementById('album-detail-stats').textContent = `${songs.length} Titel · ${r.album.year||''} · ${totalMin} Min.`; if (songs[0]) { + const s0 = songs[0]; + console.log('[sort-debug] album obj:', { name: album.name, sortName: album.sortName }); + console.log('[sort-debug] song[0] sort fields:', { albumSort: s0.albumSort, sortAlbum: s0.sortAlbum, artistSort: s0.artistSort, sortArtist: s0.sortArtist, titleSort: s0.titleSort, sortName: s0.sortName }); document.getElementById('album-detail-name').textContent = dispAlbum(songs[0]) || dispAlbumName(album); artistEl.innerHTML = parseArtists(songs[0]) .map(a => `${esc(dispArtistById(a.id, a.name))}`)