From a2b054844aa925517c5a554ae8c09369f2b31d31 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Mon, 11 Oct 2021 22:22:36 -0400 Subject: Fix unsubmitted segments sometimes not skipping --- src/content.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 50ca77e3..4b480ddd 100644 --- a/src/content.ts +++ b/src/content.ts @@ -461,7 +461,7 @@ function startSponsorSchedule(includeIntersectingSegments = false, currentTime?: } // Don't skip if this category should not be skipped - if (!shouldSkip(currentSkip) && skipInfo.array !== sponsorTimesSubmitting) return; + if (!shouldSkip(currentSkip) && !sponsorTimesSubmitting?.some((segment) => segment.segment === currentSkip.segment)) return; const skippingFunction = () => { let forcedSkipTime: number = null; -- cgit v1.2.3