aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAjay <[email protected]>2022-01-16 01:17:49 -0500
committerAjay <[email protected]>2022-01-16 01:17:49 -0500
commit6b6ca6198f7e043a29b9e408772a9c9b0db76973 (patch)
treeca36d0ba3d719017ef5ddcf45cd8a3807446bc92
parent6788394be10a2f1930e6decfc7113865fd632d9a (diff)
downloadSponsorBlock-6b6ca6198f7e043a29b9e408772a9c9b0db76973.tar.gz
SponsorBlock-6b6ca6198f7e043a29b9e408772a9c9b0db76973.zip
Don't schedule skips for full video segments
-rw-r--r--src/content.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content.ts b/src/content.ts
index 81ba097b..0d0aa132 100644
--- a/src/content.ts
+++ b/src/content.ts
@@ -1395,8 +1395,9 @@ function shouldAutoSkip(segment: SponsorTime): boolean {
}
function shouldSkip(segment: SponsorTime): boolean {
- return utils.getCategorySelection(segment.category)?.option !== CategorySkipOption.ShowOverlay ||
- (Config.config.autoSkipOnMusicVideos && sponsorTimes?.some((s) => s.category === "music_offtopic"));
+ return (segment.actionType !== ActionType.Full
+ && utils.getCategorySelection(segment.category)?.option !== CategorySkipOption.ShowOverlay)
+ || (Config.config.autoSkipOnMusicVideos && sponsorTimes?.some((s) => s.category === "music_offtopic"));
}
/** Creates any missing buttons on the YouTube player if possible. */