Update script.js
This commit is contained in:
parent
aff05c70f5
commit
bdb087f8d5
1 changed files with 5 additions and 2 deletions
|
|
@ -3669,10 +3669,13 @@ async function openDownloadMissingModalForYouTube(virtualPlaylistId, playlistNam
|
||||||
tracks: spotifyTracks
|
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 = {
|
const heroContext = {
|
||||||
type: 'playlist',
|
type: 'playlist',
|
||||||
playlist: { name: playlistName, owner: 'YouTube' },
|
playlist: { name: playlistName, owner: source },
|
||||||
trackCount: spotifyTracks.length,
|
trackCount: spotifyTracks.length,
|
||||||
playlistId: virtualPlaylistId
|
playlistId: virtualPlaylistId
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue