From 00a2740406455c9e71acce105a1cff5c646ae855 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kasper=20Rynning-T=C3=B8nnesen?= Date: Tue, 23 Oct 2018 12:49:27 +0200 Subject: [PATCH] Not looping higher than list --- server/public/assets/js/list.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/public/assets/js/list.js b/server/public/assets/js/list.js index df6d637d..2e801fdf 100755 --- a/server/public/assets/js/list.js +++ b/server/public/assets/js/list.js @@ -608,7 +608,7 @@ var List = { exportToSoundCloud: function(thisSong, i) { console.log(thisSong, i); - if(i > full_playlist.length) { + if(i >= full_playlist.length) { console.log(result, List.found, List.not_found); List.found = []; List.not_found = []; @@ -616,7 +616,6 @@ var List = { playlist: { title: decodeURIComponent(channel.toLowerCase()) + ' - Zoff', tracks: List.found, - sharing: "public" } }).then(function(result) { console.log(result, List.found, List.not_found);