Attempt to fix ZonaQ Auth

pull/225/head
Qstick 4 years ago committed by GitHub
parent 4dff0c075a
commit bd90b74c12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -114,7 +114,7 @@ namespace NzbDrone.Core.Indexers.Definitions
.SetHeader("X-Requested-With", "XMLHttpRequest")
.Build();
response = await ExecuteAuth(authLoginRequest);
response = await ExecuteAuth(authLoginRequest2);
message = JObject.Parse(response.Content)["msg"]?.ToString();
}
@ -131,7 +131,9 @@ namespace NzbDrone.Core.Indexers.Definitions
};
requestBuilder4.SetCookies(response.GetCookies());
response = await _httpClient.ExecuteAsync(new HttpRequest(Login4Url));
var authLoginRequest3 = requestBuilder4.Build();
response = await _httpClient.ExecuteAsync(authLoginRequest3);
UpdateCookies(response.GetCookies(), DateTime.Now + TimeSpan.FromDays(30));
}

Loading…
Cancel
Save