mirror of
https://github.com/Jackett/Jackett.git
synced 2025-10-03 00:47:21 +02:00
This reverts commit 0bdcfd1e7b
.
This commit is contained in:
@@ -87,11 +87,11 @@ namespace Jackett.Common.Indexers
|
||||
// Send Post
|
||||
var response = await RequestLoginAndFollowRedirect(LoginUrl, pairs, loginPage.Cookies, true, referer: LoginUrl);
|
||||
|
||||
await ConfigureIfOK(response.Cookies, response.ContentString?.Contains("logout.php") == true, () =>
|
||||
await ConfigureIfOK(response.Cookies, response.Content?.Contains("logout.php") == true, () =>
|
||||
{
|
||||
var errorStr = "You have {0} remaining login attempts";
|
||||
var remainingAttemptSpan = new Regex(string.Format(errorStr, "(.*?)"))
|
||||
.Match(loginPage.ContentString).Groups[1].ToString();
|
||||
.Match(loginPage.Content).Groups[1].ToString();
|
||||
var attempts = Regex.Replace(remainingAttemptSpan, "<.*?>", string.Empty);
|
||||
var errorMessage = string.Format(errorStr, attempts);
|
||||
throw new ExceptionWithConfigData(errorMessage, configData);
|
||||
@@ -124,7 +124,7 @@ namespace Jackett.Common.Indexers
|
||||
try
|
||||
{
|
||||
var resultParser = new HtmlParser();
|
||||
var searchResultDocument = resultParser.ParseDocument(response.ContentString);
|
||||
var searchResultDocument = resultParser.ParseDocument(response.Content);
|
||||
var rows = searchResultDocument.QuerySelectorAll("table.lista > tbody > tr");
|
||||
|
||||
foreach (var row in rows)
|
||||
@@ -177,7 +177,7 @@ namespace Jackett.Common.Indexers
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
OnParseError(response.ContentString, ex);
|
||||
OnParseError(response.Content, ex);
|
||||
}
|
||||
|
||||
return releases;
|
||||
|
Reference in New Issue
Block a user