mirror of
https://github.com/Jackett/Jackett
synced 2025-02-25 15:42:48 +00:00
Improved the category search - can now use mutli categories
This commit is contained in:
parent
f7efd83e09
commit
b4e42b4180
1 changed files with 8 additions and 2 deletions
|
@ -189,8 +189,14 @@ namespace Jackett.Indexers
|
||||||
|
|
||||||
|
|
||||||
queryCollection.Add("search", string.IsNullOrWhiteSpace(searchString)? "" : searchString);
|
queryCollection.Add("search", string.IsNullOrWhiteSpace(searchString)? "" : searchString);
|
||||||
queryCollection.Add("incldead", "0");
|
if (trackerCats.Count > 1)
|
||||||
queryCollection.Add("cat", (trackerCats.Count < 2 ? "0" : trackerCats.ElementAt(0)));
|
{
|
||||||
|
for (var ct = 0; ct < trackerCats.Count; ct++) queryCollection.Add("cat" + (ct+1), trackerCats.ElementAt(ct));
|
||||||
|
} else
|
||||||
|
{
|
||||||
|
queryCollection.Add("cat", (trackerCats.Count == 1 ? trackerCats.ElementAt(0) : "0"));
|
||||||
|
}
|
||||||
|
//queryCollection.Add("cat", (trackerCats.Count == 1 ? trackerCats.ElementAt(0) : "0"));
|
||||||
searchUrl += "?" + queryCollection.GetQueryString();
|
searchUrl += "?" + queryCollection.GetQueryString();
|
||||||
await ProcessPage(releases, searchUrl);
|
await ProcessPage(releases, searchUrl);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue