From 66e906fece88c862b85399e1749618557d8dff77 Mon Sep 17 00:00:00 2001 From: Broque Thomas Date: Mon, 26 Jan 2026 11:42:45 -0800 Subject: [PATCH] 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. --- webui/static/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/static/script.js b/webui/static/script.js index 081e4480..1b0fdaf2 100644 --- a/webui/static/script.js +++ b/webui/static/script.js @@ -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