mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 09:07:45 +01:00
Fixed skip scheduling for auto skip
This commit is contained in:
parent
0813aa4ba3
commit
e6ea9f77e9
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue