Better search for Arche Torrent (#1405)

* Add ArcheTorrent

* ArcheTorrent: Enhanced Search
This commit is contained in:
Ellmout 2017-05-22 03:47:04 +02:00 committed by flightlevel
parent 12b60b5a9e
commit a4d5c98e12
1 changed files with 10 additions and 2 deletions

View File

@ -124,11 +124,19 @@ namespace Jackett.Indexers
var releases = new List<ReleaseInfo>();
var searchString = query.GetQueryString();
var arraySearchString = searchString.Split(' ');
searchString = "";
foreach (var subSearchString in arraySearchString)
{
searchString += "+" + subSearchString + " ";
}
searchString = searchString.Trim ();
var queryCollection = new Dictionary<string, string>();
queryCollection.Add ("search", searchString);
queryCollection.Add ("cat", "0");
queryCollection.Add("incldead", "0");
queryCollection.Add("freeleech", "0");
queryCollection.Add ("incldead", "0");
queryCollection.Add ("freeleech", "0");
queryCollection.Add ("lang", "0");
var searchUrl = BrowseUrl + "?" + queryCollection.GetQueryString ();