Enabling cancelling spotify playlist while converting
authorRemixDev <deezloaderremix@gmail.com>
Sun, 14 Apr 2019 16:00:00 +0000 (18:00 +0200)
committerRemixDev <deezloaderremix@gmail.com>
Sun, 14 Apr 2019 16:00:00 +0000 (18:00 +0200)
app/app.js

index ea5db6f9be486529bf6ab72146f615a49458f8d2..a7f43d9dc61d5bf70f09a1b74acb39dc4691ffdf 100644 (file)
@@ -1015,6 +1015,7 @@ io.sockets.on('connection', function (s) {
                                logger.info("Waiting for all tracks to be converted");
                                const convert = async () =>{
                                        await asyncForEach(downloading.obj.tracks, async (t,i)=>{
+                                               if (!downloadQueue[downloading.queueId]) return false
                                                try{
                                                        downloading.playlistContent[i] = await convertSpotify2Deezer(t)
                                                }catch(err){