Skip to content

Commit

Permalink
Fix unsubmitted segments sometimes manual skipping if manual skip ena…
Browse files Browse the repository at this point in the history
…bled for category

Fixes #2002
  • Loading branch information
ajayyy committed Apr 29, 2024
1 parent 7b572c3 commit 5b845a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5b845a5

Please sign in to comment.