mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-27 10:58:34 +01:00
Fixed: Respect categories for ImmortalSeed in search
This commit is contained in:
parent
1945af060d
commit
c94573e868
1 changed files with 5 additions and 1 deletions
|
|
@ -171,12 +171,16 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categori
|
|||
{
|
||||
var searchUrl = Settings.BaseUrl + "browse.php";
|
||||
|
||||
//TODO - Actually map some categories here
|
||||
if (term.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
searchUrl += string.Format("?do=search&keywords={0}&search_type=t_name&category=0&include_dead_torrents=no", WebUtility.UrlEncode(term));
|
||||
}
|
||||
|
||||
if (categories != null && categories.Length > 0)
|
||||
{
|
||||
searchUrl += "&selectedcats2=" + string.Join(",", Capabilities.Categories.MapTorznabCapsToTrackers(categories));
|
||||
}
|
||||
|
||||
var request = new IndexerRequest(searchUrl, HttpAccept.Html);
|
||||
|
||||
yield return request;
|
||||
|
|
|
|||
Loading…
Reference in a new issue