AnimeBytes: remove useless request

This commit is contained in:
kaso17 2017-09-11 11:39:47 +02:00
parent bcbe18214b
commit 19547bc58f
1 changed files with 1 additions and 10 deletions

View File

@ -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"), () =>
{ {