Add minimum duration option

This commit is contained in:
Lartza
2020-01-24 01:02:23 +02:00
parent 2b7f940669
commit e6ef27936e
6 changed files with 51 additions and 3 deletions

View File

@@ -521,6 +521,10 @@ function checkSponsorTime(sponsorTimes, index, openNotice) {
lastTime = v.currentTime - 0.0001;
}
if (sponsorTimes[index][1] - sponsorTimes[index][0] < SB.config.minDuration) {
return false;
}
if (checkIfTimeToSkip(v.currentTime, sponsorTimes[index][0], sponsorTimes[index][1]) && !hiddenSponsorTimes.includes(index)) {
//skip it
skipToTime(v, index, sponsorTimes, openNotice);