diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/ConfusedPolarBear.Plugin.IntroSkipper.csproj b/ConfusedPolarBear.Plugin.IntroSkipper/ConfusedPolarBear.Plugin.IntroSkipper.csproj index 9f94c15..fab02b4 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.2 - 0.0.0.2 + 0.0.0.3 + 0.0.0.3 true true enable diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/FPCalc.cs b/ConfusedPolarBear.Plugin.IntroSkipper/FPCalc.cs index 565a307..af80747 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/FPCalc.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/FPCalc.cs @@ -14,11 +14,6 @@ namespace ConfusedPolarBear.Plugin.IntroSkipper; /// public static class FPCalc { - /// - /// Minimum fpcalc version that can be used. - /// - private static Version minimumFPCalcVersion = new Version(1, 4, 3); - /// /// Gets or sets the logger. /// @@ -32,29 +27,9 @@ public static class FPCalc { try { - var rawVersion = GetOutput("-version", 2000).TrimEnd(); - if (!rawVersion.StartsWith("fpcalc version", StringComparison.OrdinalIgnoreCase)) - { - return false; - } - - Logger?.LogDebug("raw fpcalc version: {Version}", rawVersion); - - var version = Version.Parse(rawVersion.AsSpan(15)); - - Logger?.LogDebug("Found fpcalc version {Version}", version); - - var okay = version >= minimumFPCalcVersion; - - if (!okay) - { - Logger?.LogError( - "installed fpcalc version of {Version} is too old (minimum is {Minimum})", - version, - minimumFPCalcVersion); - } - - return okay; + var version = GetOutput("-version", 2000).TrimEnd(); + Logger?.LogInformation("fpcalc -version: {Version}", version); + return version.StartsWith("fpcalc version", StringComparison.OrdinalIgnoreCase); } catch { diff --git a/manifest.json b/manifest.json index 1ea1a5a..38da3eb 100644 --- a/manifest.json +++ b/manifest.json @@ -21,8 +21,16 @@ "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" + "checksum": "83c3e3618a6c37c2767e5bfea64ef515", + "timestamp": "2022-05-22T00:05:12Z" + }, + { + "version": "0.0.0.3", + "changelog": "- fix version check", + "targetAbi": "10.8.0.0", + "sourceUrl": "https://github.com/ConfusedPolarBear/intro-skipper/releases/download/v0.0.3/intro-skipper-v0.0.3.zip", + "checksum": "4d9eee379679c13c351d64f9d8c52a23", + "timestamp": "2022-05-22T03:43:29Z" } ] }