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