From 7bf6931dbcb1ba131126525532ceab7f3cbb5a10 Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Fri, 6 May 2022 03:00:09 -0500 Subject: [PATCH] Decrease intro minimum duration Always report progress to frontend --- .../ScheduledTasks/FingerprinterTask.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs index 9f82d70..b93b0da 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs @@ -17,7 +17,7 @@ public class FingerprinterTask : IScheduledTask { /// /// Minimum time (in seconds) for a contiguous time range to be considered an introduction. /// - private const int MINIMUM_INTRO_DURATION = 18; + private const int MINIMUM_INTRO_DURATION = 15; /// /// Maximum number of bits (out of 32 total) that can be different between segments before they are considered dissimilar. @@ -126,6 +126,9 @@ public class FingerprinterTask : IScheduledTask { lhs.EpisodeId, rhs.EpisodeId); + totalProcessed += 2; + progress.Report((totalProcessed * 100) / Plugin.Instance!.TotalQueued); + continue; }