Add option to manual skip when a full video segment exists

This commit is contained in:
Ajay
2022-09-03 23:16:18 -04:00
parent e81ff66dd3
commit 00d625013b
4 changed files with 25 additions and 2 deletions

View File

@@ -1690,9 +1690,10 @@ function createButton(baseID: string, title: string, callback: () => void, image
}
function shouldAutoSkip(segment: SponsorTime): boolean {
return utils.getCategorySelection(segment.category)?.option === CategorySkipOption.AutoSkip ||
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.Poi);
&& segment.actionType !== ActionType.Poi));
}
function shouldSkip(segment: SponsorTime): boolean {