From 833610966182deb1b3e3d58eec17d2fbee37f70e Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Wed, 10 Sep 2025 14:31:34 -0700 Subject: [PATCH] Update script.js --- webui/static/script.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/webui/static/script.js b/webui/static/script.js index f329c4f7..7b930b63 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -9663,6 +9663,13 @@ async function startYouTubeDownloadMissing(urlHash) { // Store reference for card navigation state.convertedSpotifyPlaylistId = virtualPlaylistId; + // Close the discovery modal if it's open + const discoveryModal = document.getElementById(`youtube-discovery-modal-${urlHash}`); + if (discoveryModal) { + discoveryModal.classList.add('hidden'); + console.log('🔄 Closed YouTube discovery modal to show download modal'); + } + // Open download missing tracks modal for YouTube playlist await openDownloadMissingModalForYouTube(virtualPlaylistId, playlistName, spotifyTracks);