1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-24 15:21:06 +00:00

Revert "Fixes #1606 " (#1649)

* Revert "Pretome: Attempted parsing fix (#1648)"

This reverts commit d083cf774a.

* Revert "t411 v2 (#1620)"

This reverts commit f2ce167bbf.

* Revert "Fixes #1606  (#1625)"

This reverts commit 4e04bbbcf4.
This commit is contained in:
flightlevel 2017-08-11 22:29:15 +10:00 committed by GitHub
parent d083cf774a
commit 84a45737d3
2 changed files with 12 additions and 19 deletions

View file

@ -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()

View file

@ -13,7 +13,7 @@
Categories = new int[1] { TorznabCatType.Movies.ID },
SearchTerm = request.Search,
ImdbID = request.Imdbid,
QueryType = "movie"
QueryType = "TorrentPotato"
};
torznabQuery.ExpandCatsToSubCats();