diff options
author | Ajay Ramachandran <[email protected]> | 2021-10-11 22:22:36 -0400 |
---|---|---|
committer | Ajay Ramachandran <[email protected]> | 2021-10-11 22:22:36 -0400 |
commit | a2b054844aa925517c5a554ae8c09369f2b31d31 (patch) | |
tree | e7b1178694d965d63eb9f84b6ac0e49f4251d894 | |
parent | 5b79d4ef48cb49d2fd13da2c630404fc688d7c0c (diff) | |
download | SponsorBlock-a2b054844aa925517c5a554ae8c09369f2b31d31.tar.gz SponsorBlock-a2b054844aa925517c5a554ae8c09369f2b31d31.zip |
Fix unsubmitted segments sometimes not skipping
-rw-r--r-- | src/content.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content.ts b/src/content.ts index 50ca77e3..4b480ddd 100644 --- a/src/content.ts +++ b/src/content.ts @@ -461,7 +461,7 @@ function startSponsorSchedule(includeIntersectingSegments = false, currentTime?: } // Don't skip if this category should not be skipped - if (!shouldSkip(currentSkip) && skipInfo.array !== sponsorTimesSubmitting) return; + if (!shouldSkip(currentSkip) && !sponsorTimesSubmitting?.some((segment) => segment.segment === currentSkip.segment)) return; const skippingFunction = () => { let forcedSkipTime: number = null; |