From 94bd2a059e3ba2e908abb98c67165e528bebabd7 Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Tue, 29 Nov 2022 02:29:27 -0600 Subject: [PATCH] Use chromaprint analyzer when detecting credits --- ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs | 2 +- .../ScheduledTasks/DetectCreditsTask.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs b/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs index 4f3308f..dfc5639 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs @@ -205,7 +205,7 @@ private void QueueEpisode(Episode episode) _queuedEpisodes.TryAdd(episode.SeasonId, new List()); // Queue the episode for analysis - var maxCreditsDuration = Plugin.Instance!.Configuration.MaximumEpisodeCreditsDuration * 60; + var maxCreditsDuration = Plugin.Instance!.Configuration.MaximumEpisodeCreditsDuration; _queuedEpisodes[episode.SeasonId].Add(new QueuedEpisode() { SeriesName = episode.SeriesName, diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/DetectCreditsTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/DetectCreditsTask.cs index 4a9fd9e..74ef0c0 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/DetectCreditsTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/DetectCreditsTask.cs @@ -165,7 +165,7 @@ private void AnalyzeSeason( // Analyze with Chromaprint first and fall back to the black frame detector var analyzers = new IMediaFileAnalyzer[] { - // TODO: FIXME: new ChromaprintAnalyzer(_loggerFactory.CreateLogger()), + new ChromaprintAnalyzer(_loggerFactory.CreateLogger()), new BlackFrameAnalyzer(_loggerFactory.CreateLogger()) };