Only add episodes without intro/credit to episodesWithoutIntros (#145)

This commit is contained in:
rlauuzo 2024-05-08 16:27:41 +02:00 committed by GitHub
parent 9d4cb0a4ec
commit fe60457091
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.