mirror of
https://github.com/Jackett/Jackett.git
synced 2025-09-17 17:34:09 +02:00
Fix morethan
This commit is contained in:
@@ -202,7 +202,7 @@ namespace Jackett.Controllers
|
|||||||
baseIndexer.ResetBaseConfig();
|
baseIndexer.ResetBaseConfig();
|
||||||
if (ex is ExceptionWithConfigData)
|
if (ex is ExceptionWithConfigData)
|
||||||
{
|
{
|
||||||
jsonReply["config"] = ((ExceptionWithConfigData)ex).ConfigData.ToJson(null);
|
jsonReply["config"] = ((ExceptionWithConfigData)ex).ConfigData.ToJson(null,false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -55,8 +55,10 @@ namespace Jackett.Indexers
|
|||||||
{ "keeplogged", "1" }
|
{ "keeplogged", "1" }
|
||||||
};
|
};
|
||||||
|
|
||||||
var result = await RequestLoginAndFollowRedirect(LoginUrl, pairs, null, true, SearchUrl, SiteLink);
|
var preRequest = await RequestStringWithCookiesAndRetry(LoginUrl, string.Empty);
|
||||||
await ConfigureIfOK(result.Cookies, result.Content != null && result.Content.Contains("logout.php?"), () =>
|
|
||||||
|
var result = await RequestLoginAndFollowRedirect(LoginUrl, pairs, preRequest.Cookies, true, SearchUrl, SiteLink);
|
||||||
|
await ConfigureIfOK(result.Cookies, result.Content != null && result.Content.Contains("status\":\"success\""), () =>
|
||||||
{
|
{
|
||||||
CQ dom = result.Content;
|
CQ dom = result.Content;
|
||||||
dom["#loginform > table"].Remove();
|
dom["#loginform > table"].Remove();
|
||||||
|
Reference in New Issue
Block a user