Don't filter segments when switching videos still

Fixes #989
This commit is contained in:
Ajay Ramachandran 2021-10-16 13:41:07 -04:00
parent 4bc180077e
commit ad3f0c1a06

View file

@ -397,7 +397,8 @@ function durationChangeListener(): void {
}
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 {