From 44e2a237a76bcdef981d5e5d860bdd4567a3d839 Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Mon, 25 Jul 2022 22:03:06 -0500 Subject: [PATCH] Add TODO --- .../ScheduledTasks/FingerprinterTask.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs index be88502..cd64efe 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs @@ -158,6 +158,9 @@ public class FingerprinterTask : IScheduledTask minimumIntroDuration = Plugin.Instance!.Configuration.MinimumIntroDuration; + // TODO: if the queue is modified while the task is running, the task will fail. + // clone the queue before running the task to prevent this. + // Analyze all episodes in the queue using the degrees of parallelism the user specified. Parallel.ForEach(queue, options, (season) => {