mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-05-05 11:10:24 +02:00
Fixed: (Indexer) HDTorrents search imdbid + season/episode
This commit is contained in:
parent
3b7bafb78e
commit
e1b924ab08
1 changed files with 4 additions and 2 deletions
|
|
@ -151,9 +151,11 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categori
|
|||
{
|
||||
var searchUrl = Settings.BaseUrl + "torrents.php?" + string.Join(string.Empty, Capabilities.Categories.MapTorznabCapsToTrackers(categories).Select(cat => $"category[]={cat}&"));
|
||||
|
||||
var search = new[] { imdbId, term };
|
||||
|
||||
var queryCollection = new NameValueCollection
|
||||
{
|
||||
{ "search", imdbId ?? term },
|
||||
{ "search", string.Join(" ", search.Where(s => !string.IsNullOrEmpty(s))) },
|
||||
{ "active", "0" },
|
||||
{ "options", "0" }
|
||||
};
|
||||
|
|
@ -188,7 +190,7 @@ public IndexerPageableRequestChain GetSearchRequests(TvSearchCriteria searchCrit
|
|||
{
|
||||
var pageableRequests = new IndexerPageableRequestChain();
|
||||
|
||||
pageableRequests.Add(GetPagedRequests(string.Format("{0}", searchCriteria.SanitizedSearchTerm), searchCriteria.Categories, searchCriteria.FullImdbId));
|
||||
pageableRequests.Add(GetPagedRequests(string.Format("{0}", searchCriteria.SanitizedTvSearchString), searchCriteria.Categories, searchCriteria.FullImdbId));
|
||||
|
||||
return pageableRequests;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue