mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 22:07:32 -04: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 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||||
|
|
||||||
var response = await ExecuteAuth(authLoginRequest);
|
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));
|
UpdateCookies(response.GetCookies(), DateTime.Now.AddDays(30));
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ namespace NzbDrone.Core.Indexers.Definitions
|
||||||
|
|
||||||
protected override bool CheckIfLoginNeeded(HttpResponse httpResponse)
|
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()
|
private IndexerCapabilities SetCapabilities()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue