Fix morethan

This commit is contained in:
KZ
2015-10-12 19:58:40 +01:00
parent 1fd78c7072
commit bb7fb1ec37
2 changed files with 5 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ namespace Jackett.Controllers
baseIndexer.ResetBaseConfig();
if (ex is ExceptionWithConfigData)
{
jsonReply["config"] = ((ExceptionWithConfigData)ex).ConfigData.ToJson(null);
jsonReply["config"] = ((ExceptionWithConfigData)ex).ConfigData.ToJson(null,false);
}
else
{

View File

@@ -55,8 +55,10 @@ namespace Jackett.Indexers
{ "keeplogged", "1" }
};
var result = await RequestLoginAndFollowRedirect(LoginUrl, pairs, null, true, SearchUrl, SiteLink);
await ConfigureIfOK(result.Cookies, result.Content != null && result.Content.Contains("logout.php?"), () =>
var preRequest = await RequestStringWithCookiesAndRetry(LoginUrl, string.Empty);
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;
dom["#loginform > table"].Remove();