Fixed skip scheduling for auto skip

This commit is contained in:
Ajay Ramachandran 2020-03-09 18:34:33 -04:00
parent 0813aa4ba3
commit e6ea9f77e9

View file

@ -463,7 +463,12 @@ function startSponsorSchedule(currentTime?: number): void {
skipToTime(video, skipInfo.index, skipInfo.array, skipInfo.openNotice); skipToTime(video, skipInfo.index, skipInfo.array, skipInfo.openNotice);
} }
startSponsorSchedule(skipTime[0] + 0.001); if (Config.config.disableAutoSkip) {
startSponsorSchedule(skipTime[0] + 0.001);
} else {
startSponsorSchedule(skipTime[1]);
}
}; };
if (timeUntilSponsor <= 0) { if (timeUntilSponsor <= 0) {