Not looping higher than list

This commit is contained in:
Kasper Rynning-Tønnesen
2018-10-23 12:49:27 +02:00
parent 2b020ad4c2
commit 00a2740406

View File

@@ -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);