From ad3f0c1a06fec5e3f7275cff96db4dc5058885b2 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Sat, 16 Oct 2021 13:41:07 -0400 Subject: [PATCH] Don't filter segments when switching videos still Fixes #989 --- src/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 7eeed429..5a4415c6 100644 --- a/src/content.ts +++ b/src/content.ts @@ -397,7 +397,8 @@ function durationChangeListener(): void { } function segmentDurationFilter(segment: SponsorTime): boolean { - return segment.videoDuration === 0 || !video?.duration || Math.abs(video.duration - segment.videoDuration) < 2; + return segment.videoDuration === 0 || !video?.duration + || switchingVideos || Math.abs(video.duration - segment.videoDuration) < 2; } function cancelSponsorSchedule(): void {