mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-30 12:27:09 +01:00
Fixed: AnimeTorrents fails on cat mapping
This commit is contained in:
parent
0f27837246
commit
add5cd1193
1 changed files with 3 additions and 1 deletions
|
|
@ -149,10 +149,12 @@ private IEnumerable<IndexerRequest> GetPagedRequests(string term, int[] categori
|
|||
var searchUrl = BaseUrl + "ajax/torrents_data.php";
|
||||
var searchUrlReferer = BaseUrl + "torrents.php?cat=0&searchin=filename&search=";
|
||||
|
||||
var trackerCats = Capabilities.Categories.MapTorznabCapsToTrackers(categories) ?? new List<string>();
|
||||
|
||||
var queryCollection = new NameValueCollection
|
||||
{
|
||||
{ "total", "146" }, // Not sure what this is about but its required!
|
||||
{ "cat", Capabilities.Categories.MapTorznabCapsToTrackers(categories).SingleOrDefault() ?? "0" },
|
||||
{ "cat", trackerCats.Count == 1 ? trackerCats.First() : "0" },
|
||||
{ "page", "1" },
|
||||
{ "searchin", "filename" },
|
||||
{ "search", searchString }
|
||||
|
|
|
|||
Loading…
Reference in a new issue