mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2024-11-10 01:01:55 +01:00
Fix hidden mute segments sometimes still muting
This commit is contained in:
parent
b7c5737a95
commit
5d871d5fe7
1 changed files with 1 additions and 0 deletions
|
@ -772,6 +772,7 @@ function getVirtualTime(): number {
|
|||
|
||||
function inMuteSegment(currentTime: number, includeOverlap: boolean): boolean {
|
||||
const checkFunction = (segment) => segment.actionType === ActionType.Mute
|
||||
&& segment.hidden === SponsorHideType.Visible
|
||||
&& segment.segment[0] <= currentTime
|
||||
&& (segment.segment[1] > currentTime || (includeOverlap && segment.segment[1] + 0.02 > currentTime));
|
||||
return sponsorTimes?.some(checkFunction) || sponsorTimesSubmitting.some(checkFunction);
|
||||
|
|
Loading…
Reference in a new issue