mirror of
https://github.com/Prowlarr/Prowlarr
synced 2025-12-20 23:42:46 +01:00
Fixed: (BakaBT) Update login check (#1617)
Co-authored-by: Bogdan <mynameisbogdan@users.noreply.github.com>
This commit is contained in:
parent
6aebc4ee01
commit
bc8ba5ca02
1 changed files with 2 additions and 2 deletions
|
|
@ -98,7 +98,7 @@ protected override async Task DoLogin()
|
|||
|
||||
var response = await ExecuteAuth(authLoginRequest);
|
||||
|
||||
if (response.Content != null && response.Content.Contains("<a href=\"logout.php\">Logout</a>"))
|
||||
if (response.Content != null && !CheckIfLoginNeeded(response))
|
||||
{
|
||||
UpdateCookies(response.GetCookies(), DateTime.Now.AddDays(30));
|
||||
|
||||
|
|
@ -112,7 +112,7 @@ protected override async Task DoLogin()
|
|||
|
||||
protected override bool CheckIfLoginNeeded(HttpResponse httpResponse)
|
||||
{
|
||||
return !httpResponse.Content.Contains("<a href=\"logout.php\">Logout</a>");
|
||||
return !httpResponse.Content.Contains("logout.php");
|
||||
}
|
||||
|
||||
private IndexerCapabilities SetCapabilities()
|
||||
|
|
|
|||
Loading…
Reference in a new issue