fix: enable album folder organization for Discover page downloads

Updated startMissingTracksProcess in script.js to recognize discover_album_ IDs as album downloads. This ensures that albums downloaded from the Discover page (e.g., Recent Releases) are correctly organized into "Artist/Album" folders instead of being treated as flat playlists.
This commit is contained in:
Broque Thomas 2026-01-26 11:42:45 -08:00
parent db2400b42a
commit 66e906fece

View file

@ -7385,8 +7385,8 @@ async function startMissingTracksProcess(playlistId) {
};
// If this is an artist album download, use album name and include full context
// Match both 'artist_album_' and 'enhanced_search_album_' prefixes
if (playlistId.startsWith('artist_album_') || playlistId.startsWith('enhanced_search_album_')) {
// Match 'artist_album_', 'enhanced_search_album_', and 'discover_album_' prefixes
if (playlistId.startsWith('artist_album_') || playlistId.startsWith('enhanced_search_album_') || playlistId.startsWith('discover_album_')) {
requestBody.playlist_name = process.album?.name || process.playlist.name;
requestBody.is_album_download = true;
requestBody.album_context = process.album; // Full Spotify album object