From 9af0e3f864c22aee7ec2b7b8a8c32d1372965501 Mon Sep 17 00:00:00 2001 From: rlauuzo <46294892+rlauuzo@users.noreply.github.com> Date: Thu, 23 May 2024 18:07:31 +0200 Subject: [PATCH] Meet minimum credit requirement --- .../Analyzers/BlackFrameAnalyzer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/BlackFrameAnalyzer.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/BlackFrameAnalyzer.cs index 88080d6..7c720b3 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/BlackFrameAnalyzer.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/BlackFrameAnalyzer.cs @@ -135,7 +135,7 @@ public class BlackFrameAnalyzer : IMediaFileAnalyzer { // Start by analyzing the last N minutes of the file. var upperLimit = searchStart; - var lowerLimit = searchStart - searchDistance; + var lowerLimit = Math.Max(searchStart - searchDistance, minimumCreditsDuration); var start = TimeSpan.FromSeconds(upperLimit); var end = TimeSpan.FromSeconds(lowerLimit); var firstFrameTime = 0.0;