Fixing problem with dumb premade Spotify Playlists
authorRemixDev <deezloaderremix@gmail.com>
Thu, 2 May 2019 22:24:05 +0000 (00:24 +0200)
committerRemixDev <deezloaderremix@gmail.com>
Thu, 2 May 2019 22:24:05 +0000 (00:24 +0200)
app/app.js

index 652f6d340c4ccb42675c73ac331a8594a7ec1dad..54d14e40b07c1c8b04a5f8a2d48c3ff6b743049b 100644 (file)
@@ -1132,7 +1132,7 @@ io.sockets.on('connection', function (s) {
                                                                return false
                                                        }
                                                        t.position = index
-                                                       if (t.id==0){
+                                                       if (t.id==0 && downloading.obj.tracks[t.position] != null){
                                                                t.title = downloading.obj.tracks[t.position].name
                                              t.album = {id: 0, title: downloading.obj.tracks[t.position].album.name}
                                              t.artist = {id: 0, name: downloading.obj.tracks[t.position].artists[0].name}