From bdb087f8d5344e6e30aecd5001ae693dc818dcff Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Tue, 30 Sep 2025 19:07:38 -0700 Subject: [PATCH] Update script.js --- webui/static/script.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webui/static/script.js b/webui/static/script.js index 1187b357..9327dd2a 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -3669,10 +3669,13 @@ async function openDownloadMissingModalForYouTube(virtualPlaylistId, playlistNam tracks: spotifyTracks }; - // Generate hero section for YouTube playlist context + // Generate hero section with dynamic source detection + const source = playlistName.includes('[Beatport]') ? 'Beatport' : + playlistName.includes('[Tidal]') ? 'Tidal' : 'YouTube'; + const heroContext = { type: 'playlist', - playlist: { name: playlistName, owner: 'YouTube' }, + playlist: { name: playlistName, owner: source }, trackCount: spotifyTracks.length, playlistId: virtualPlaylistId };