funfile: fix parsing error. resolves #7633 (#7639)

This commit is contained in:
Diego Heras 2020-03-14 17:04:05 +01:00 committed by GitHub
parent 623da8f70d
commit b689b4581e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -78,11 +78,12 @@ namespace Jackett.Common.Indexers
{
var releases = new List<ReleaseInfo>();
var cats = MapTorznabCapsToTrackers(query);
var qc = new NameValueCollection
{
{"incldead", "1"},
{"showspam", "1"},
{"cat", MapTorznabCapsToTrackers(query).FirstOrDefault() ?? "0"}
{"cat", cats.Count == 1 ? cats[0] : "0"}
};
if (!string.IsNullOrWhiteSpace(query.GetQueryString()))
qc.Add("search", query.GetQueryString());