|
|
|
@ -78,7 +78,8 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|
|
|
|
var requestBuilder3 = new HttpRequestBuilder(string.Format("{0}/{1}", Settings.BaseUrl.TrimEnd('/'), "takelogin.php"))
|
|
|
|
|
{
|
|
|
|
|
LogResponseContent = true,
|
|
|
|
|
AllowAutoRedirect = true
|
|
|
|
|
AllowAutoRedirect = true,
|
|
|
|
|
Method = HttpMethod.POST
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var authLoginCheckRequest = requestBuilder3
|
|
|
|
@ -88,8 +89,6 @@ namespace NzbDrone.Core.Indexers.Definitions
|
|
|
|
|
.SetHeader("Referer", loginUrl)
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
authLoginCheckRequest.Method = HttpMethod.POST;
|
|
|
|
|
|
|
|
|
|
var loginResponse = await ExecuteAuth(authLoginCheckRequest);
|
|
|
|
|
|
|
|
|
|
if (!loginResponse.GetCookies().ContainsKey("uid"))
|
|
|
|
|