diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
index 3531b2d..c0639a4 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
@@ -64,17 +64,32 @@
-
- The amount of each episode's audio that will be analyzed is determined by these two
- settings. The minimum of (episode duration * percent, maximum runtime) is the amount of
- audio that will be analyzed.
+
- If these settings are changed after analyzing your media, the cached fingerprints and
- introduction timestamps for each season you want to analyze with the modified settings
+
+ The amount of each episode's audio that will be analyzed is determined using both
+ the percentage of audio and maximum runtime of audio to analyze. The minimum of
+ (episode duration * percent, maximum runtime) is the amount of audio that will
+ be analyzed.
+
+ If the audio percentage or maximum runtime settings are changed after analyzing your
+ media, the cached fingerprints and introduction timestamps for each season you want to
+ analyze with the modified settings
will have to be deleted.
- Increasing these settings will cause episode analysis to take much longer.
+
+ Increasing either of these settings will cause episode analysis to take much longer.
+
@@ -480,6 +495,7 @@
document.querySelector('#AnalysisPercent').value = config.AnalysisPercent;
document.querySelector('#AnalysisLengthLimit').value = config.AnalysisLengthLimit;
+ document.querySelector('#MinimumDuration').value = config.MinimumIntroDuration;
document.querySelector('#CacheFingerprints').checked = config.CacheFingerprints;
document.querySelector('#ShowPromptAdjustment').value = config.ShowPromptAdjustment;
@@ -498,6 +514,7 @@
config.AnalysisPercent = document.querySelector('#AnalysisPercent').value;
config.AnalysisLengthLimit = document.querySelector('#AnalysisLengthLimit').value;
+ config.MinimumIntroDuration = document.querySelector('#MinimumDuration').value;
config.CacheFingerprints = document.querySelector('#CacheFingerprints').checked;
config.ShowPromptAdjustment = document.querySelector("#ShowPromptAdjustment").value;
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs b/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs
index 5946a62..c8f371c 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/QueueManager.cs
@@ -48,12 +48,13 @@ public class QueueManager
var config = Plugin.Instance!.Configuration;
analysisPercent = Convert.ToDouble(config.AnalysisPercent) / 100;
- if (config.AnalysisLengthLimit != 10 || config.AnalysisPercent != 25)
+ if (config.AnalysisLengthLimit != 10 || config.AnalysisPercent != 25 || config.MinimumIntroDuration != 15)
{
_logger.LogDebug(
- "Introduction scan is limited to the first {Percent}% or the first {Minutes} minutes of each episode (whichever is smaller)",
+ "Analysis settings have been changed to: {Percent}%/{Minutes}m and a minimum of {Minimum}s",
config.AnalysisPercent,
- config.AnalysisLengthLimit);
+ config.AnalysisLengthLimit,
+ config.MinimumIntroDuration);
}
// For all TV show libraries, enqueue all contained items.
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs
index 0520f20..20e5e2f 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs
@@ -15,11 +15,6 @@ namespace ConfusedPolarBear.Plugin.IntroSkipper;
///
public class FingerprinterTask : IScheduledTask
{
- ///