mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 15:21:06 +00: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:
parent
d083cf774a
commit
84a45737d3
2 changed files with 12 additions and 19 deletions
|
@ -189,29 +189,22 @@ namespace Jackett.Indexers
|
|||
{
|
||||
if (query == null)
|
||||
return false;
|
||||
|
||||
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 (!caps.SupportsCategories(query.Categories))
|
||||
return false;
|
||||
|
||||
// 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;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Unconfigure()
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
Categories = new int[1] { TorznabCatType.Movies.ID },
|
||||
SearchTerm = request.Search,
|
||||
ImdbID = request.Imdbid,
|
||||
QueryType = "movie"
|
||||
QueryType = "TorrentPotato"
|
||||
};
|
||||
torznabQuery.ExpandCatsToSubCats();
|
||||
|
||||
|
|
Loading…
Reference in a new issue