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:
parent
db2400b42a
commit
66e906fece
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue