From 0f89b08ee1413470bfe74ee5f0b98147f3ac9712 Mon Sep 17 00:00:00 2001 From: Felix Date: Tue, 5 May 2026 20:52:31 +0300 Subject: [PATCH] fix(jacktor): skip year extraction and tolerance check for serial content Move year extraction and comparison inside conditional to only apply for non-serial content (serial != 1). Previously, year tolerance was enforced for all search results, causing serial content to be incorrectly filtered when year mismatches occurred. Serial content often spans multiple years, so year matching is less reliable for identification. This change ensures serials bypass the year check while movies/single episodes still benefit from year-based filtering. Bump module version to 2.2. --- LME.JackTor/JackTorInvoke.cs | 9 ++++++--- LME.JackTor/ModInit.cs | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/LME.JackTor/JackTorInvoke.cs b/LME.JackTor/JackTorInvoke.cs index e665f62..5e5e3a2 100644 --- a/LME.JackTor/JackTorInvoke.cs +++ b/LME.JackTor/JackTorInvoke.cs @@ -334,9 +334,12 @@ namespace LME.JackTor if (!IsCodecAllowed(codec)) continue; - int extractedYear = ExtractYear(searchable); - if (year > 1900 && extractedYear > 1900 && Math.Abs(extractedYear - year) > yearTolerance) - continue; + if (serial != 1) + { + int extractedYear = ExtractYear(searchable); + if (year > 1900 && extractedYear > 1900 && Math.Abs(extractedYear - year) > yearTolerance) + continue; + } int[] seasons = ParseSeasons(searchable); bool serialHint = IsSerialHint(searchable); diff --git a/LME.JackTor/ModInit.cs b/LME.JackTor/ModInit.cs index 8f7cac6..cb5c856 100644 --- a/LME.JackTor/ModInit.cs +++ b/LME.JackTor/ModInit.cs @@ -18,7 +18,7 @@ namespace LME.JackTor { public class ModInit : IModuleLoaded { - public static double Version => 2.1; + public static double Version => 2.2; public static JackTorSettings JackTor;