mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user