1
0
Fork 0
mirror of https://github.com/Jackett/Jackett synced 2025-02-25 07:32:38 +00:00

Cardigann: improve search URL handling

This commit is contained in:
kaso17 2017-01-16 12:25:16 +01:00
parent 54b14090dd
commit 5599b05fb3

View file

@ -908,8 +908,12 @@ namespace Jackett.Indexers
queryCollection.Add(Input.Key, value);
}
}
if (queryCollection.Count > 0)
searchUrl += "&" + queryCollection.GetQueryString();
// in case no args are added remove ? again (needed for KAT)
searchUrl = searchUrl.TrimEnd('?');
// send HTTP request
var response = await RequestStringWithCookies(searchUrl);
var results = response.Content;