mirror of https://github.com/Jackett/Jackett
TorznabQuery: add IsTest flag
This commit is contained in:
parent
d499c291b9
commit
67bf46ccb6
|
@ -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()
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue