Fixed "Failed to download track, searching for alternative"
authorRemixDev <deezloaderremix@gmail.com>
Thu, 30 Jan 2020 20:33:48 +0000 (21:33 +0100)
committerRemixDev <deezloaderremix@gmail.com>
Thu, 30 Jan 2020 20:33:48 +0000 (21:33 +0100)
app/app.js

index 53221b0e469e6748be7f5663ca15455e5ec64a9e..a231f5625e9eb4898c6590a4ce2ad16da16b9fcb 100644 (file)
@@ -1607,7 +1607,7 @@ io.sockets.on('connection', function (s) {
                                                        logger.warn(`[${track.artist.name} - ${track.title}] Failed to download track, searching for alternative`)
                                                        var _trackID = await convertMetadata2Deezer(track.artist.name, track.title, track.album.title)
                                                        if (_trackID != "0"){
-                                                               track = await s.Deezer.getTrack()
+                                                               track = await s.Deezer.getTrack(_trackID)
                                                                track.searched = true
                                                                return downloadTrackObject(track, queueId, settings)
                                                        }else{