mirror of https://github.com/Jackett/Jackett
AnimeBytes: remove useless request
This commit is contained in:
parent
bcbe18214b
commit
19547bc58f
|
@ -107,19 +107,10 @@ namespace Jackett.Indexers
|
||||||
};
|
};
|
||||||
|
|
||||||
// Do the login
|
// Do the login
|
||||||
var request = new Utils.Clients.WebRequest()
|
|
||||||
{
|
|
||||||
Cookies = loginPage.Cookies,
|
|
||||||
PostData = pairs,
|
|
||||||
Referer = LoginUrl,
|
|
||||||
Type = RequestType.POST,
|
|
||||||
Encoding = Encoding,
|
|
||||||
Url = LoginUrl,
|
|
||||||
};
|
|
||||||
var response = await RequestLoginAndFollowRedirect(LoginUrl, pairs, loginPage.Cookies, true, null);
|
var response = await RequestLoginAndFollowRedirect(LoginUrl, pairs, loginPage.Cookies, true, null);
|
||||||
|
|
||||||
// Follow the redirect
|
// Follow the redirect
|
||||||
await FollowIfRedirect(response, request.Url, SearchUrl);
|
await FollowIfRedirect(response, LoginUrl, SearchUrl);
|
||||||
|
|
||||||
await ConfigureIfOK(response.Cookies, response.Content != null && response.Content.Contains("/user/logout"), () =>
|
await ConfigureIfOK(response.Cookies, response.Content != null && response.Content.Contains("/user/logout"), () =>
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue