Fixed disc folder creating for single tracks
authorRemixDev <deezloaderremix@gmail.com>
Tue, 14 Jan 2020 12:05:09 +0000 (13:05 +0100)
committerRemixDev <deezloaderremix@gmail.com>
Tue, 14 Jan 2020 12:05:09 +0000 (13:05 +0100)
app/app.js

index 68a1371b95aa30366abb1df9be37e03795f4c1aa..899b17ebe1804192ad759e213ffbbece0c412cfd 100644 (file)
@@ -2044,9 +2044,9 @@ io.sockets.on('connection', function (s) {
 
                if (
                        track.album.discTotal > 1 && (
-                       (settings.createAlbumFolder && settings.createCDFolder) && (!settings.plName ||
-                       (settings.plName && settings.savePlaylistAsCompilation) ||
-                       (settings.plName && settings.createStructurePlaylist))
+                       (settings.createAlbumFolder && settings.createCDFolder) &&
+                       (!settings.singleTrack || (settings.singleTrack && settings.createSingleFolder)) &&
+                       (!settings.plName || (settings.plName && settings.savePlaylistAsCompilation) || (settings.plName && settings.createStructurePlaylist))
                )){
                        filepath += `CD${track.discNumber + path.sep}`
                }