diff --git a/webui/static/script.js b/webui/static/script.js index dbe909ce..d1dc9288 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -8261,10 +8261,13 @@ function initializeSearchModeToggle() { // Format playlist name const playlistName = `[${album.artist}] ${albumData.name}`; - // Create minimal artist object for the modal + // Create artist object for the modal — extract ID from album data + const firstArtist = (albumData.artists || [])[0] || {}; const artistObject = { - id: null, // No artist ID from enhanced search - name: album.artist + id: firstArtist.id || album.id?.split?.('_')?.[0] || '', + name: firstArtist.name || album.artist, + image_url: firstArtist.image_url || firstArtist.images?.[0]?.url || '', + source: _activeSearchSource || '', }; // Prepare full album object for modal @@ -10710,7 +10713,7 @@ function generateDownloadModalHeroSection(context) {