Updated so that errors on video now skips on chromecast also

This commit is contained in:
Kasper Rynning-Tønnesen
2016-12-10 00:09:49 +01:00
parent 236e813e89
commit dd6fdc493c
3 changed files with 7 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -340,6 +340,9 @@ function chromecastListener(evt, data){
case -1: case -1:
socket.emit("end", {id: json_parsed.videoId, channel: chan.toLowerCase()}); socket.emit("end", {id: json_parsed.videoId, channel: chan.toLowerCase()});
break; break;
case 0:
socket.emit("skip", {error: json_parsed.data_code, id: json_parsed.videoId, pass: adminpass, channel: chan.toLowerCase});
break;
} }
} }