mirror of
https://github.com/Jackett/Jackett
synced 2025-01-20 06:29:33 +00:00
Fix default torznab query
This commit is contained in:
parent
439e9296f9
commit
6f8b1b749d
1 changed files with 3 additions and 1 deletions
|
@ -21,11 +21,13 @@ namespace Jackett.Models.DTO
|
||||||
{
|
{
|
||||||
var query = new TorznabQuery()
|
var query = new TorznabQuery()
|
||||||
{
|
{
|
||||||
QueryType = request.t,
|
QueryType = "search",
|
||||||
SearchTerm = request.q,
|
SearchTerm = request.q,
|
||||||
ImdbID = request.imdbid,
|
ImdbID = request.imdbid,
|
||||||
Episode = request.ep,
|
Episode = request.ep,
|
||||||
};
|
};
|
||||||
|
if (request.t != null)
|
||||||
|
query.QueryType = request.t;
|
||||||
if (!request.extended.IsNullOrEmptyOrWhitespace())
|
if (!request.extended.IsNullOrEmptyOrWhitespace())
|
||||||
query.Extended = ParseUtil.CoerceInt(request.extended);
|
query.Extended = ParseUtil.CoerceInt(request.extended);
|
||||||
if (!request.limit.IsNullOrEmptyOrWhitespace())
|
if (!request.limit.IsNullOrEmptyOrWhitespace())
|
||||||
|
|
Loading…
Reference in a new issue