mirror of https://github.com/Jackett/Jackett
parent
4647a6cdcd
commit
631c84094c
|
@ -198,13 +198,8 @@ namespace Jackett.Common.Indexers
|
||||||
var homePageLoad = await RequestLoginAndFollowRedirect(LandingPageURL, new Dictionary<string, string> { }, null, true, null, SiteLink);
|
var homePageLoad = await RequestLoginAndFollowRedirect(LandingPageURL, new Dictionary<string, string> { }, null, true, null, SiteLink);
|
||||||
|
|
||||||
var result = await RequestLoginAndFollowRedirect(LoginUrl, pairs, homePageLoad.Cookies, true, null, LandingPageURL);
|
var result = await RequestLoginAndFollowRedirect(LoginUrl, pairs, homePageLoad.Cookies, true, null, LandingPageURL);
|
||||||
await ConfigureIfOK(result.Cookies, result.Content != null && result.Content.Contains("/logout.php"), () =>
|
await ConfigureIfOK(result.Cookies, result.Content?.Contains("/logout.php") == true, () =>
|
||||||
{
|
throw new ExceptionWithConfigData("Login failed! Check the username and password. If they are ok, try logging on the website.", configData));
|
||||||
var parser = new HtmlParser();
|
|
||||||
var dom = parser.ParseDocument(result.Content);
|
|
||||||
var errorMessage = dom.QuerySelector(".error").TextContent.Trim();
|
|
||||||
throw new ExceptionWithConfigData(errorMessage, configData);
|
|
||||||
});
|
|
||||||
|
|
||||||
// Store RSS key from feed generator page
|
// Store RSS key from feed generator page
|
||||||
try
|
try
|
||||||
|
|
Loading…
Reference in New Issue