mirror of
https://github.com/Jackett/Jackett
synced 2025-02-24 15:21:06 +00:00
AnimeTorrents: Change to HTTPS and fix login
This commit is contained in:
parent
753913ccc7
commit
37dc039de4
1 changed files with 2 additions and 2 deletions
|
@ -35,7 +35,7 @@ namespace Jackett.Indexers
|
|||
public AnimeTorrents(IIndexerManagerService i, HttpWebClient c, Logger l, IProtectionService ps)
|
||||
: base(name: "AnimeTorrents",
|
||||
description: "Definitive source for anime and manga",
|
||||
link: "http://animetorrents.me/",
|
||||
link: "https://animetorrents.me/",
|
||||
caps: new TorznabCapabilities(),
|
||||
manager: i,
|
||||
client: c, // Forced HTTP client for custom headers
|
||||
|
@ -78,7 +78,7 @@ namespace Jackett.Indexers
|
|||
{ "rememberme[]", "1" }
|
||||
};
|
||||
|
||||
var loginPage = await RequestStringWithCookiesAndRetry(LoginUrl, null, null);
|
||||
var loginPage = await RequestStringWithCookiesAndRetry(LoginUrl, "", LoginUrl);
|
||||
|
||||
var result = await RequestLoginAndFollowRedirect(LoginUrl, pairs, loginPage.Cookies, true);
|
||||
await ConfigureIfOK(result.Cookies, result.Content != null && result.Content.Contains("logout.php"), () =>
|
||||
|
|
Loading…
Reference in a new issue