Fix multiple segments skipped not appearing

Fixes #909, #919, #905
This commit is contained in:
Ajay Ramachandran 2021-09-01 15:41:46 -04:00
parent 681eb61763
commit 5c704ad241

View file

@ -993,7 +993,7 @@ function getNextSkipIndex(currentTime: number, includeIntersectingSegments: bool
function getLatestEndTimeIndex(sponsorTimes: SponsorTime[], index: number, hideHiddenSponsors = true): number {
// Only combine segments for AutoSkip
if (index == -1 ||
shouldAutoSkip(sponsorTimes[index])) return index;
!shouldAutoSkip(sponsorTimes[index])) return index;
// Default to the normal endTime
let latestEndTimeIndex = index;