Added skip for rate-limit reached on soundcloud

This commit is contained in:
Kasper Rynning-Tønnesen
2018-09-25 13:25:45 +02:00
parent e050e19c5f
commit e5221ad88b
2 changed files with 7 additions and 1 deletions

View File

@@ -347,6 +347,12 @@ var Player = {
}).catch(function(e){
});
}
}).catch(function(error) {
curr_playing = id;
emit("skip", {error: 5, id: id, channel: chan.toLowerCase()});
setTimeout(function() {
toast("Seems the SoundCloud-API rate-limit has been reached..", "red lighten");
}, 1000);
});
} else {
try {