The amount of each episode's audio that will be analyzed is determined using both the percentage of audio and maximum runtime of audio to analyze. The minimum of @@ -373,6 +384,7 @@ "AnalysisPercent", "AnalysisLengthLimit", "MinimumIntroDuration", + "MaximumIntroDuration", "EdlAction", // playback "ShowPromptAdjustment", diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/AnalyzeEpisodesTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/AnalyzeEpisodesTask.cs index f3aef75..328e7b8 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/AnalyzeEpisodesTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/AnalyzeEpisodesTask.cs @@ -304,8 +304,12 @@ public class AnalyzeEpisodesTask : IScheduledTask remainingEpisode.EpisodeId, fingerprintCache[remainingEpisode.EpisodeId]); - // If one of the intros isn't valid, ignore this comparison result. - if (!currentIntro.Valid) + // Ignore this comparison result if: + // - one of the intros isn't valid, or + // - the introduction exceeds the configured limit + if ( + !remainingIntro.Valid || + remainingIntro.Duration > Plugin.Instance!.Configuration.MaximumIntroDuration) { continue; }