debug: log sort fields from Navidrome album/song response
This commit is contained in:
1 parent
e3987a6376
commit
44ef685922
1 file changed
+3
@@ -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 => `<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>`)
|
||||
|
||||
Reference in new issue
Block a user