|
|
@ -121,10 +121,10 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz
|
|
|
|
.AddFormParameter("password", Settings.Password)
|
|
|
|
.AddFormParameter("password", Settings.Password)
|
|
|
|
.AddFormParameter("pid", Settings.Pid.Trim())
|
|
|
|
.AddFormParameter("pid", Settings.Pid.Trim())
|
|
|
|
.Accept(HttpAccept.Json)
|
|
|
|
.Accept(HttpAccept.Json)
|
|
|
|
.WithRateLimit(RateLimit.TotalSeconds)
|
|
|
|
|
|
|
|
.Build();
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
|
|
var response = await _httpClient.ExecuteProxiedAsync(authLoginRequest, Definition);
|
|
|
|
var response = await ExecuteAuth(authLoginRequest);
|
|
|
|
|
|
|
|
|
|
|
|
var authResponse = STJson.Deserialize<AvistazAuthResponse>(response.Content);
|
|
|
|
var authResponse = STJson.Deserialize<AvistazAuthResponse>(response.Content);
|
|
|
|
|
|
|
|
|
|
|
|
return authResponse.Token;
|
|
|
|
return authResponse.Token;
|
|
|
|