CardigannIIdexer: adjust .Today.Year

Almost all of the indexers that use the year for keywordless searches fail during January because there rarely are titles that contain the new year this early in the new year.
This update uses the previous year during January and the new year from February onwards.
This commit is contained in:
Garfield69
2025-01-04 19:38:31 +13:00
parent 4c0f37ec17
commit b8619f1a73

View File

@@ -254,7 +254,7 @@ namespace Jackett.Common.Indexers.Definitions
[".Config.sitelink"] = SiteLink,
[".True"] = "True",
[".False"] = null,
[".Today.Year"] = DateTime.Today.Year.ToString()
[".Today.Year"] = DateTime.Today.Month > 1 ? DateTime.Today.Year.ToString() : (DateTime.Today.Year - 1).ToString()
};
foreach (var setting in Definition.Settings)