Feature/aggregate performance improvement (#1349)

* Checking capabilities before executing a query

* Introduce base class for meta indexers

* Build fix - I seriously do not know how I missed that

* Moving things to the appropriate place

* Simplifying things as much as possible and moving once again

* Build fix?
This commit is contained in:
chibidev
2017-05-14 18:55:36 +02:00
committed by kaso17
parent 2fb045e94a
commit 27d4f2108e
10 changed files with 202 additions and 105 deletions

View File

@@ -31,6 +31,54 @@ namespace Jackett.Models
protected string[] QueryStringParts = null;
public bool IsSearch
{
get
{
return (QueryStringParts != null && QueryStringParts.Length > 0);
}
}
public bool IsTVSearch
{
get
{
return QueryType == "tvsearch";
}
}
public bool IsMovieSearch
{
get
{
return QueryType == "movie";
}
}
public bool IsTVRageSearch
{
get
{
return RageID != null;
}
}
public bool IsImdbQuery
{
get
{
return ImdbID != null;
}
}
public bool HasSpecifiedCategories
{
get
{
return (Categories != null && Categories.Length > 0);
}
}
public string SanitizedSearchTerm
{
get