mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: (Immortalseed) Keywordless Search
This commit is contained in:
@@ -170,16 +170,21 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|||||||
|
|
||||||
private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categories, string imdbId = null)
|
private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categories, string imdbId = null)
|
||||||
{
|
{
|
||||||
var searchUrl = Settings.BaseUrl + "browse.php";
|
var searchUrl = Settings.BaseUrl + "browse.php?";
|
||||||
|
|
||||||
if (term.IsNotNullOrWhiteSpace())
|
if (term.IsNotNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
searchUrl += string.Format("?do=search&keywords={0}&search_type=t_name&category=0&include_dead_torrents=no", WebUtility.UrlEncode(term));
|
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)
|
if (categories != null && categories.Length > 0)
|
||||||
{
|
{
|
||||||
searchUrl += "&selectedcats2=" + string.Join(",", Capabilities.Categories.MapTorznabCapsToTrackers(categories));
|
if (term.IsNotNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
searchUrl += "&";
|
||||||
|
}
|
||||||
|
|
||||||
|
searchUrl += "selectedcats2=" + string.Join(",", Capabilities.Categories.MapTorznabCapsToTrackers(categories));
|
||||||
}
|
}
|
||||||
|
|
||||||
var request = new IndexerRequest(searchUrl, HttpAccept.Html);
|
var request = new IndexerRequest(searchUrl, HttpAccept.Html);
|
||||||
|
Reference in New Issue
Block a user