// =================================================================== // SOULSYNC DISCOVERY SYNC TAB (Phase 1c.3) // =================================================================== // Surfaces the user's persisted SoulSync Discovery / personalized // playlists (decade mixes, hidden gems, popular picks, daily mixes, // discovery shuffle, etc.) as a Sync-page tab so they participate // in the mirrored-playlist + Auto-Sync pipeline like every other // source. // // Different shape from the LB / Last.fm tabs: personalized tracks // already carry Spotify / iTunes / Deezer IDs (matched at generation // time from the discovery pool), so there's no MB-style "needs // discovery" hop. Click → refresh kind → grab tracks → mirror as // ``source='soulsync_discovery'`` with the matched_data shape // downstream consumers already expect from auto-discovered Spotify // mirrors. let _soulsyncDiscoverySyncRecords = []; async function loadSoulsyncDiscoverySyncPlaylists() { const container = document.getElementById('soulsync-discovery-sync-playlist-container'); const refreshBtn = document.getElementById('soulsync-discovery-sync-refresh-btn'); if (!container) return; container.innerHTML = `