Decrease intro minimum duration

Always report progress to frontend
This commit is contained in:
ConfusedPolarBear 2022-05-06 03:00:09 -05:00
parent 98b0ebe6ce
commit 7bf6931dbc

View File

@ -17,7 +17,7 @@ public class FingerprinterTask : IScheduledTask {
/// <summary> /// <summary>
/// Minimum time (in seconds) for a contiguous time range to be considered an introduction. /// Minimum time (in seconds) for a contiguous time range to be considered an introduction.
/// </summary> /// </summary>
private const int MINIMUM_INTRO_DURATION = 18; private const int MINIMUM_INTRO_DURATION = 15;
/// <summary> /// <summary>
/// Maximum number of bits (out of 32 total) that can be different between segments before they are considered dissimilar. /// 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, lhs.EpisodeId,
rhs.EpisodeId); rhs.EpisodeId);
totalProcessed += 2;
progress.Report((totalProcessed * 100) / Plugin.Instance!.TotalQueued);
continue; continue;
} }