TorznabQuery: add IsTest flag

This commit is contained in:
kaso17 2016-12-06 18:24:40 +01:00
parent d499c291b9
commit 67bf46ccb6
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,8 @@ namespace Jackett.Models
public string Episode { get; set; }
public string SearchTerm { get; set; }
public bool IsTest { get; set; }
protected string[] QueryStringParts = null;
public string SanitizedSearchTerm
@ -56,6 +58,7 @@ namespace Jackett.Models
public TorznabQuery()
{
Categories = new int[0];
IsTest = false;
}
public string GetQueryString()

View File

@ -126,6 +126,7 @@ namespace Jackett.Services
{
var indexer = GetIndexer(name);
var browseQuery = new TorznabQuery();
browseQuery.IsTest = true;
var results = await indexer.PerformQuery(browseQuery);
results = indexer.CleanLinks(results);
logger.Info(string.Format("Found {0} releases from {1}", results.Count(), indexer.DisplayName));