debug: full JSON dump of song/album + artist sort map diagnostics

This commit is contained in:
Honey committed 2026-06-08 23:23:41 +02:00
1 parent 9e6e81bc22
commit 85f8d758a5
2 files changed
+5 -1

No files matched your search

+3 -1
View File
@@ -133,10 +133,12 @@ export async function ensureArtistSortMap() {
_artistSortFetch = apiCached('getArtists')
.then(r => {
const all = (r?.artists?.index || []).flatMap(i => i.artist || []);
console.log('[sort-debug] getArtists sample (first 3):', all.slice(0,3).map(a => ({ id: a.id, name: a.name, sortName: a.sortName })));
cacheArtistSortNames(all);
console.log('[sort-debug] _artistSortMap size:', _artistSortMap?.size);
_artistSortFetch = null;
})
.catch(() => { _artistSortFetch = null; });
.catch(e => { console.warn('[sort-debug] ensureArtistSortMap error:', e); _artistSortFetch = null; });
return _artistSortFetch;
}