debug: log all sort keys from Navidrome song and album response

This commit is contained in:
Honey committed 2026-06-08 22:55:03 +02:00
1 parent 44ef685922
commit 228f58d6d5
1 file changed
+2 -2
+2 -2
View File
@@ -397,8 +397,8 @@ export async function loadAlbumDetail(album) {
document.getElementById('album-detail-stats').textContent = `${songs.length} Titel · ${r.album.year||''} · ${totalMin} Min.`; document.getElementById('album-detail-stats').textContent = `${songs.length} Titel · ${r.album.year||''} · ${totalMin} Min.`;
if (songs[0]) { if (songs[0]) {
const s0 = songs[0]; const s0 = songs[0];
console.log('[sort-debug] album obj:', { name: album.name, sortName: album.sortName }); console.log('[sort-debug] song[0] ALL sort keys:', Object.fromEntries(Object.entries(s0).filter(([k]) => k.toLowerCase().includes('sort'))));
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 }); console.log('[sort-debug] r.album ALL sort keys:', Object.fromEntries(Object.entries(r.album).filter(([k]) => k.toLowerCase().includes('sort'))));
document.getElementById('album-detail-name').textContent = dispAlbum(songs[0]) || dispAlbumName(album); document.getElementById('album-detail-name').textContent = dispAlbum(songs[0]) || dispAlbumName(album);
artistEl.innerHTML = parseArtists(songs[0]) artistEl.innerHTML = parseArtists(songs[0])
.map(a => `<span class="song-link" onclick="event.stopPropagation();s_goArtist(event,'${esc(a.originalName||a.name)}','${esc(a.id||'')}')">${esc(dispArtistById(a.id, a.name))}</span>`) .map(a => `<span class="song-link" onclick="event.stopPropagation();s_goArtist(event,'${esc(a.originalName||a.name)}','${esc(a.id||'')}')">${esc(dispArtistById(a.id, a.name))}</span>`)