aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2024-04-28 22:59:02 -0400
committerAjay <[email protected]>2024-04-28 22:59:02 -0400
commit5b845a56e10e9878025a28e4d85d7e5c53b4817d (patch)
tree33b0370558290fe977807ce56c3fff39e41dffb5
parent7b572c3c0e750efade8246b517255a891d9469ce (diff)
downloadSponsorBlock-5b845a56e10e9878025a28e4d85d7e5c53b4817d.tar.gz
SponsorBlock-5b845a56e10e9878025a28e4d85d7e5c53b4817d.zip
Fix unsubmitted segments sometimes manual skipping if manual skip enabled for category
Fixes #2002
-rw-r--r--src/content.ts3
1 files changed, 2 insertions, 1 deletions
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 {