From 5c704ad241f151d884c43f28f84fdc0485d897a5 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Wed, 1 Sep 2021 15:41:46 -0400 Subject: [PATCH] Fix multiple segments skipped not appearing Fixes #909, #919, #905 --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 0808d23c..64cc1c1f 100644 --- a/src/content.ts +++ b/src/content.ts @@ -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;