diff --git a/src/ui.js b/src/ui.js index aa711be..8f426d1 100644 --- a/src/ui.js +++ b/src/ui.js @@ -281,6 +281,13 @@ export async function showSongInfo(s) { const r = await api('getSong', `&id=${s.id}`); const full = r.song; if (full) { + // getSong often omits albumArtist — fill it from getAlbum which always has album.artist + if (!full.albumArtist && full.albumId) { + try { + const ar = await api('getAlbum', `&id=${full.albumId}`); + if (ar.album?.artist) full.albumArtist = ar.album.artist; + } catch {} + } S.infoSong = full; _renderInfoModal(full); // If edit mode was already opened before getSong returned, refresh the fields