From 552a1fdf535857adcbea1bc3101467261db88dcc Mon Sep 17 00:00:00 2001 From: ConfusedPolarBear <33811686+ConfusedPolarBear@users.noreply.github.com> Date: Sat, 21 May 2022 16:34:14 -0500 Subject: [PATCH] Version 0.0.0.2 --- .../ConfusedPolarBear.Plugin.IntroSkipper.csproj | 4 ++-- .../ScheduledTasks/FingerprinterTask.cs | 12 +++++++----- manifest.json | 8 ++++++++ 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ConfusedPolarBear.Plugin.IntroSkipper.csproj b/ConfusedPolarBear.Plugin.IntroSkipper/ConfusedPolarBear.Plugin.IntroSkipper.csproj index cf29c62..9f94c15 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ConfusedPolarBear.Plugin.IntroSkipper.csproj +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ConfusedPolarBear.Plugin.IntroSkipper.csproj @@ -3,8 +3,8 @@ net6.0 ConfusedPolarBear.Plugin.IntroSkipper - 0.0.0.1 - 0.0.0.1 + 0.0.0.2 + 0.0.0.2 true true enable diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs index 26769e9..9d6cc2c 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/ScheduledTasks/FingerprinterTask.cs @@ -202,7 +202,7 @@ public class FingerprinterTask : IScheduledTask break; } - // FIXME: add retry logic + // TODO: add retry logic var alreadyDone = Plugin.Instance!.Intros; if (alreadyDone.ContainsKey(lhs.EpisodeId) && alreadyDone.ContainsKey(rhs.EpisodeId)) { @@ -586,8 +586,11 @@ public class FingerprinterTask : IScheduledTask var oldDuration = GetIntroDuration(episode.EpisodeId); - // TODO: remove - var shortPath = episode.Path.Substring(episode.Path.Length - 40); + var shortPath = episode.Path; + if (shortPath.Length > 40) + { + shortPath = shortPath.Substring(episode.Path.Length - 40); + } // If the episode's intro duration is close enough to the targeted bucket, leave it alone. if (Math.Abs(lhsDuration - oldDuration) <= ReanalysisTolerance) @@ -629,8 +632,7 @@ public class FingerprinterTask : IScheduledTask continue; } - // TODO: change to debug - _logger.LogInformation( + _logger.LogDebug( "Reanalysis succeeded for {Path} (was {Initial}, now is {New})", shortPath, oldDuration, diff --git a/manifest.json b/manifest.json index a15159c..1ea1a5a 100644 --- a/manifest.json +++ b/manifest.json @@ -15,6 +15,14 @@ "sourceUrl": "https://github.com/ConfusedPolarBear/intro-skipper/releases/download/v0.0.1/intro-skipper-v0.0.1.zip", "checksum": "4b0e4ae45d09ecd9014a4986f3095ce4", "timestamp": "2022-05-10T07:57:11Z" + }, + { + "version": "0.0.0.2", + "changelog": "- decrease audio fingerprint comparison time\n- analyze two seasons simultaneously", + "targetAbi": "10.8.0.0", + "sourceUrl": "https://github.com/ConfusedPolarBear/intro-skipper/releases/download/v0.0.2/intro-skipper-v0.0.2.zip", + "checksum": "83c3e3618a6c37c2767e5bfea64ef515", + "timestamp": "2022-05-22T00:05:12Z" } ] }