Fix skip looping

Fixes #1747
This commit is contained in:
Ajay 2023-05-06 20:04:17 -04:00
parent 186fa7af61
commit ca24e82a6d

View file

@ -661,6 +661,11 @@ async function startSponsorSchedule(includeIntersectingSegments = false, current
forcedSkipTime = forceVideoTime + 0.001;
}
// Don't pretend to be earlier than we are, could result in loops
if (forcedSkipTime !== null && forceVideoTime > forcedSkipTime) {
forcedSkipTime = null;
}
startSponsorSchedule(forcedIncludeIntersectingSegments, forcedSkipTime, forcedIncludeNonIntersectingSegments);
};