mirror of
https://github.com/Jackett/Jackett
synced 2025-03-09 05:16:55 +00:00
pornolab: ident forum offline msg
This commit is contained in:
parent
691a8c3757
commit
12bd05422a
1 changed files with 4 additions and 2 deletions
|
@ -238,11 +238,13 @@ namespace Jackett.Common.Indexers
|
|||
var result = await RequestLoginAndFollowRedirect(LoginUrl, pairs, CookieHeader, true, null, LoginUrl, true);
|
||||
await ConfigureIfOK(result.Cookies, result.ContentString != null && result.ContentString.Contains("Вы зашли как:"), () =>
|
||||
{
|
||||
logger.Debug(result.ContentString);
|
||||
var errorMessage = "Unknown error message, please report";
|
||||
var LoginResultParser = new HtmlParser();
|
||||
var LoginResultDocument = LoginResultParser.ParseDocument(result.ContentString);
|
||||
var errormsg = LoginResultDocument.QuerySelector("h4[class=\"warnColor1 tCenter mrg_16\"]");
|
||||
var errormsg = LoginResultDocument.QuerySelector("div");
|
||||
if (errormsg != null && errormsg.TextContent.Contains("Форум временно отключен"))
|
||||
errorMessage = errormsg.TextContent;
|
||||
errormsg = LoginResultDocument.QuerySelector("h4[class=\"warnColor1 tCenter mrg_16\"]");
|
||||
if (errormsg != null)
|
||||
errorMessage = errormsg.TextContent;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue