Use ExecuteAuth in AvistazBase

pull/1884/head
Bogdan 1 year ago
parent c81cbc801a
commit 82688d8a55

@ -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;

Loading…
Cancel
Save