mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
* Revert "Pretome: Attempted parsing fix (#1648)" This reverts commitd083cf774a
. * Revert "t411 v2 (#1620)" This reverts commitf2ce167bbf
. * Revert "Fixes #1606 (#1625)" This reverts commit4e04bbbcf4
.
This commit is contained in:
@@ -189,29 +189,22 @@ namespace Jackett.Indexers
|
|||||||
{
|
{
|
||||||
if (query == null)
|
if (query == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
var caps = TorznabCaps;
|
var caps = TorznabCaps;
|
||||||
|
if (!caps.SearchAvailable && query.IsSearch)
|
||||||
|
return false;
|
||||||
|
if (!caps.TVSearchAvailable && query.IsTVSearch)
|
||||||
|
return false;
|
||||||
|
if (!caps.MovieSearchAvailable && query.IsMovieSearch)
|
||||||
|
return false;
|
||||||
|
if (!caps.SupportsTVRageSearch && query.IsTVRageSearch)
|
||||||
|
return false;
|
||||||
|
if (!caps.SupportsImdbSearch && query.IsImdbQuery)
|
||||||
|
return false;
|
||||||
|
|
||||||
// If a category is specified but the indexer does not support it, we do not hnadle the query
|
|
||||||
// to avoid returning unexpected releases (tv shows instead of movies etc)
|
|
||||||
if (query.HasSpecifiedCategories)
|
if (query.HasSpecifiedCategories)
|
||||||
if (!caps.SupportsCategories(query.Categories))
|
if (!caps.SupportsCategories(query.Categories))
|
||||||
return false;
|
return false;
|
||||||
|
return true;
|
||||||
// If at least one search is possible, the indexer is able to handle this query
|
|
||||||
if (caps.SearchAvailable && query.IsSearch)
|
|
||||||
return true;
|
|
||||||
if (caps.TVSearchAvailable && query.IsTVSearch)
|
|
||||||
return true;
|
|
||||||
if (caps.MovieSearchAvailable && query.IsMovieSearch)
|
|
||||||
return true;
|
|
||||||
if (caps.SupportsTVRageSearch && query.IsTVRageSearch)
|
|
||||||
return true;
|
|
||||||
if (caps.SupportsImdbSearch && query.IsImdbQuery)
|
|
||||||
return true;
|
|
||||||
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Unconfigure()
|
public void Unconfigure()
|
||||||
|
@@ -13,7 +13,7 @@
|
|||||||
Categories = new int[1] { TorznabCatType.Movies.ID },
|
Categories = new int[1] { TorznabCatType.Movies.ID },
|
||||||
SearchTerm = request.Search,
|
SearchTerm = request.Search,
|
||||||
ImdbID = request.Imdbid,
|
ImdbID = request.Imdbid,
|
||||||
QueryType = "movie"
|
QueryType = "TorrentPotato"
|
||||||
};
|
};
|
||||||
torznabQuery.ExpandCatsToSubCats();
|
torznabQuery.ExpandCatsToSubCats();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user