From 5d871d5fe76217e3f962ec464bb7d8a84d426056 Mon Sep 17 00:00:00 2001 From: Ajay Date: Tue, 13 Feb 2024 21:32:23 -0500 Subject: Fix hidden mute segments sometimes still muting --- src/content.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'src/content.ts') diff --git a/src/content.ts b/src/content.ts index ee328d92..934b9d67 100644 --- a/src/content.ts +++ b/src/content.ts @@ -772,6 +772,7 @@ function getVirtualTime(): number { function inMuteSegment(currentTime: number, includeOverlap: boolean): boolean { const checkFunction = (segment) => segment.actionType === ActionType.Mute + && segment.hidden === SponsorHideType.Visible && segment.segment[0] <= currentTime && (segment.segment[1] > currentTime || (includeOverlap && segment.segment[1] + 0.02 > currentTime)); return sponsorTimes?.some(checkFunction) || sponsorTimesSubmitting.some(checkFunction); -- cgit v1.2.3