From 31365442b181a3a359e2afca8d47dd900f94ac6f Mon Sep 17 00:00:00 2001 From: TwistedUmbrellaX Date: Mon, 4 Mar 2024 08:58:15 -0500 Subject: [PATCH] Chromaprint is for scan, not config --- ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs | 7 ------- .../ScheduledTasks/BaseItemAnalyzerTask.cs | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs b/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs index 30239a4..c27ff62 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs @@ -43,13 +43,6 @@ public class QueueManager /// Queued media items. public ReadOnlyDictionary> GetMediaItems() { - // Assert that ffmpeg with chromaprint is installed - if (!FFmpegWrapper.CheckFFmpegVersion()) - { - throw new FingerprintException( - "ffmpeg with chromaprint is not installed on this system - episodes will not be analyzed. If Jellyfin is running natively, install jellyfin-ffmpeg5. If Jellyfin is running in a container, upgrade it to the latest version of 10.8.0."); - } - Plugin.Instance!.TotalQueued = 0; LoadAnalysisSettings(); diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs index 940e0a0..ca72342 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/BaseItemAnalyzerTask.cs @@ -53,6 +53,13 @@ public class BaseItemAnalyzerTask IProgress progress, CancellationToken cancellationToken) { + // Assert that ffmpeg with chromaprint is installed + if (!FFmpegWrapper.CheckFFmpegVersion()) + { + throw new FingerprintException( + "ffmpeg with chromaprint is not installed on this system - episodes will not be analyzed. If Jellyfin is running natively, install jellyfin-ffmpeg5. If Jellyfin is running in a container, upgrade it to the latest version of 10.8.0."); + } + var queueManager = new QueueManager( _loggerFactory.CreateLogger(), _libraryManager);