1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-01-02 13:16:16 +00:00

Fix default torznab query

This commit is contained in:
chibidev 2017-08-11 23:55:40 +02:00
parent 439e9296f9
commit 6f8b1b749d

View file

@ -21,11 +21,13 @@ namespace Jackett.Models.DTO
{
var query = new TorznabQuery()
{
QueryType = request.t,
QueryType = "search",
SearchTerm = request.q,
ImdbID = request.imdbid,
Episode = request.ep,
};
if (request.t != null)
query.QueryType = request.t;
if (!request.extended.IsNullOrEmptyOrWhitespace())
query.Extended = ParseUtil.CoerceInt(request.extended);
if (!request.limit.IsNullOrEmptyOrWhitespace())