diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
index b63d77d..9ecdfdc 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html
@@ -850,12 +850,16 @@
switch (e.key) {
case "ArrowDown":
- // if the control key is pressed, shift LHS by 10s. Otherwise, shift by 1.
- offsetDelta = e.ctrlKey ? 10 / 0.128 : 1;
+ if (timestampError.value != "") {
+ // if the control key is pressed, shift LHS by 10s. Otherwise, shift by 1.
+ offsetDelta = e.ctrlKey ? 10 / 0.128 : 1;
+ }
break;
case "ArrowUp":
- offsetDelta = e.ctrlKey ? -10 / 0.128 : -1;
+ if (timestampError.value != "") {
+ offsetDelta = e.ctrlKey ? -10 / 0.128 : -1;
+ }
break;
case "ArrowRight":
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/FFmpegWrapper.cs b/ConfusedPolarBear.Plugin.IntroSkipper/FFmpegWrapper.cs
index 95779e6..26a9f75 100644
--- a/ConfusedPolarBear.Plugin.IntroSkipper/FFmpegWrapper.cs
+++ b/ConfusedPolarBear.Plugin.IntroSkipper/FFmpegWrapper.cs
@@ -605,6 +605,25 @@ public static class FFmpegWrapper
Encoding.UTF8).ConfigureAwait(false);
}
+ ///
+ /// Remove a cached episode fingerprint from disk.
+ ///
+ /// Episode to remove from cache.
+ /// Analysis mode.
+ public static void DeleteEpisodeCache(string episodeId, AnalysisMode mode)
+ {
+ var cachePath = Path.Join(
+ Plugin.Instance!.FingerprintCachePath,
+ episodeId);
+
+ if (mode == AnalysisMode.Credits)
+ {
+ cachePath += "-credits";
+ }
+
+ File.Delete(cachePath);
+ }
+
///
/// Determines the path an episode should be cached at.
/// This function was created before the unified caching mechanism was introduced (in v0.1.7).