Update script.js
This commit is contained in:
parent
579674cb33
commit
8336109661
1 changed files with 7 additions and 0 deletions
|
|
@ -9663,6 +9663,13 @@ async function startYouTubeDownloadMissing(urlHash) {
|
||||||
// Store reference for card navigation
|
// Store reference for card navigation
|
||||||
state.convertedSpotifyPlaylistId = virtualPlaylistId;
|
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
|
// Open download missing tracks modal for YouTube playlist
|
||||||
await openDownloadMissingModalForYouTube(virtualPlaylistId, playlistName, spotifyTracks);
|
await openDownloadMissingModalForYouTube(virtualPlaylistId, playlistName, spotifyTracks);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue