Fix unsubmitted segments sometimes manual skipping if manual skip enabled for category

Fixes #2002
This commit is contained in:
Ajay 2024-04-28 22:59:02 -04:00
parent 7b572c3c0e
commit 5b845a56e1

View file

@ -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 {