mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-12 14:37:23 +03:00
@@ -397,7 +397,8 @@ function durationChangeListener(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function segmentDurationFilter(segment: SponsorTime): boolean {
|
function segmentDurationFilter(segment: SponsorTime): boolean {
|
||||||
return segment.videoDuration === 0 || !video?.duration || Math.abs(video.duration - segment.videoDuration) < 2;
|
return segment.videoDuration === 0 || !video?.duration
|
||||||
|
|| switchingVideos || Math.abs(video.duration - segment.videoDuration) < 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
function cancelSponsorSchedule(): void {
|
function cancelSponsorSchedule(): void {
|
||||||
|
|||||||
Reference in New Issue
Block a user