mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-03 08:57:46 +02:00
Merge string/byte request code
This commit is contained in:
@@ -77,7 +77,7 @@ namespace Jackett.Common.Indexers
|
||||
public override async Task<IndexerConfigurationStatus> ApplyConfiguration(JToken configJson)
|
||||
{
|
||||
LoadValuesFromJson(configJson);
|
||||
var loginPage = await RequestStringWithCookies(LoginUrl, string.Empty);
|
||||
var loginPage = await WebRequestWithCookiesAsync(LoginUrl, string.Empty);
|
||||
var pairs = new Dictionary<string, string>
|
||||
{
|
||||
{"uid", configData.Username.Value},
|
||||
@@ -119,7 +119,7 @@ namespace Jackett.Common.Indexers
|
||||
queryCollection.Add("search", query.GetQueryString());
|
||||
}
|
||||
|
||||
var response = await RequestStringWithCookiesAndRetry(SearchUrl + queryCollection.GetQueryString());
|
||||
var response = await RequestWithCookiesAndRetryAsync(SearchUrl + queryCollection.GetQueryString());
|
||||
|
||||
try
|
||||
{
|
||||
|
Reference in New Issue
Block a user