Get 'current year' results for keywordless query in torrent-paradise-ml (#11039)

This commit is contained in:
XYZJR 2021-02-08 19:14:29 +01:00 committed by GitHub
parent 351c399bfd
commit d24fe95467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -94,11 +94,7 @@ namespace Jackett.Common.Indexers
var searchTerm = query.GetQueryString();
if (string.IsNullOrWhiteSpace(searchTerm))
{
if (query.IsTest)
{
searchTerm = DateTime.Now.Year.ToString();
}
else return null;
searchTerm = DateTime.Now.Year.ToString();
}
var qc = new NameValueCollection