Check silence start time before adjusting intro

This commit is contained in:
ConfusedPolarBear 2022-09-03 01:42:31 -05:00
parent 9b837cbbd0
commit 85f21ae51c

View File

@ -652,10 +652,12 @@ public class AnalyzeEpisodesTask : IScheduledTask
// Ignore any silence that:
// * doesn't intersect the ending of the intro, or
// * is shorter than the user defined minimum duration
// * is shorter than the user defined minimum duration, or
// * starts before the introduction does
if (
!originalIntroEnd.Intersects(currentRange) ||
currentRange.Duration < silenceDetectionMinimumDuration)
currentRange.Duration < silenceDetectionMinimumDuration ||
currentRange.Start < originalIntro.IntroStart)
{
continue;
}