mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
Use ExecuteAuth in AvistazBase
This commit is contained in:
parent
c81cbc801a
commit
82688d8a55
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue