From 5b845a56e10e9878025a28e4d85d7e5c53b4817d Mon Sep 17 00:00:00 2001 From: Ajay Date: Sun, 28 Apr 2024 22:59:02 -0400 Subject: Fix unsubmitted segments sometimes manual skipping if manual skip enabled for category Fixes #2002 --- src/content.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/content.ts b/src/content.ts index 5ad18d50..f67ba684 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1808,7 +1808,8 @@ function shouldAutoSkip(segment: SponsorTime): boolean { return (!Config.config.manualSkipOnFullVideo || !sponsorTimes?.some((s) => s.category === segment.category && s.actionType === ActionType.Full)) && (utils.getCategorySelection(segment.category)?.option === CategorySkipOption.AutoSkip || (Config.config.autoSkipOnMusicVideos && sponsorTimes?.some((s) => s.category === "music_offtopic") - && segment.actionType === ActionType.Skip)); + && segment.actionType === ActionType.Skip) + || sponsorTimesSubmitting.some((s) => s.segment === segment.segment)); } function shouldSkip(segment: SponsorTime): boolean { -- cgit v1.2.3