Fixed: (BakaBT) Update login check (#1617)

Co-authored-by: Bogdan <mynameisbogdan@users.noreply.github.com>
pull/1619/head
Cedric Lewe 1 year ago committed by GitHub
parent 6aebc4ee01
commit bc8ba5ca02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -98,7 +98,7 @@ namespace NzbDrone.Core.Indexers.Definitions
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 @@ namespace NzbDrone.Core.Indexers.Definitions
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…
Cancel
Save