From fe60457091132b508bf520552addc083b513b5cc 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 0f29005..e80c581 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChromaprintAnalyzer.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Analyzers/ChromaprintAnalyzer.cs @@ -167,7 +167,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.