Use ExecuteAuth in AvistazBase

This commit is contained in:
Bogdan 2023-10-04 04:27:04 +03:00
parent c81cbc801a
commit 82688d8a55

View file

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