mirror of
https://github.com/lampame/lampac-ukraine.git
synced 2026-06-17 12:08:54 +00:00
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.
This commit is contained in:
parent
d36f29b7be
commit
0f89b08ee1
@ -334,9 +334,12 @@ namespace LME.JackTor
|
|||||||
if (!IsCodecAllowed(codec))
|
if (!IsCodecAllowed(codec))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
int extractedYear = ExtractYear(searchable);
|
if (serial != 1)
|
||||||
if (year > 1900 && extractedYear > 1900 && Math.Abs(extractedYear - year) > yearTolerance)
|
{
|
||||||
continue;
|
int extractedYear = ExtractYear(searchable);
|
||||||
|
if (year > 1900 && extractedYear > 1900 && Math.Abs(extractedYear - year) > yearTolerance)
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
int[] seasons = ParseSeasons(searchable);
|
int[] seasons = ParseSeasons(searchable);
|
||||||
bool serialHint = IsSerialHint(searchable);
|
bool serialHint = IsSerialHint(searchable);
|
||||||
|
|||||||
@ -18,7 +18,7 @@ namespace LME.JackTor
|
|||||||
{
|
{
|
||||||
public class ModInit : IModuleLoaded
|
public class ModInit : IModuleLoaded
|
||||||
{
|
{
|
||||||
public static double Version => 2.1;
|
public static double Version => 2.2;
|
||||||
|
|
||||||
public static JackTorSettings JackTor;
|
public static JackTorSettings JackTor;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user