From 90ec690e27bd7e40888d85c78a0ae0a2aab23af0 Mon Sep 17 00:00:00 2001 From: rlauuzo <46294892+rlauuzo@users.noreply.github.com> Date: Wed, 8 May 2024 16:27:41 +0200 Subject: [PATCH] Only add episodes without intro/credit to episodesWithoutIntros (#145) --- .../Analyzers/ChromaprintAnalyzer.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChromaprintAnalyzer.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChromaprintAnalyzer.cs index 47c0ba8..6e2ee7b 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChromaprintAnalyzer.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChromaprintAnalyzer.cs @@ -166,7 +166,10 @@ public class ChromaprintAnalyzer : IMediaFileAnalyzer } // If no intro is found at this point, the popped episode is not reinserted into the queue. - episodesWithoutIntros.Add(currentEpisode); + if (!seasonIntros.ContainsKey(currentEpisode.EpisodeId)) + { + episodesWithoutIntros.Add(currentEpisode); + } } // If cancellation was requested, report that no episodes were analyzed.