mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fix confusing session expired test message
This commit is contained in:
@@ -45,7 +45,7 @@ namespace NzbDrone.Core.Indexers.Cardigann
|
|||||||
.ContainsIgnoreCase("login.php"))
|
.ContainsIgnoreCase("login.php"))
|
||||||
{
|
{
|
||||||
CookiesUpdater(null, null);
|
CookiesUpdater(null, null);
|
||||||
throw new IndexerException(indexerResponse, "We are being redirected to the login page. Most likely your session expired or was killed. Try testing the indexer in the settings.");
|
throw new IndexerException(indexerResponse, "We are being redirected to the login page. Most likely your session expired or was killed. Recheck your cookie or credentials and try testing the indexer.");
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new IndexerException(indexerResponse, $"Unexpected response status {indexerResponse.HttpResponse.StatusCode} code from API request");
|
throw new IndexerException(indexerResponse, $"Unexpected response status {indexerResponse.HttpResponse.StatusCode} code from API request");
|
||||||
|
@@ -34,7 +34,7 @@ namespace NzbDrone.Core.Indexers.PassThePopcorn
|
|||||||
.ContainsIgnoreCase("login.php"))
|
.ContainsIgnoreCase("login.php"))
|
||||||
{
|
{
|
||||||
CookiesUpdater(null, null);
|
CookiesUpdater(null, null);
|
||||||
throw new IndexerAuthException("We are being redirected to the PTP login page. Most likely your session expired or was killed. Try testing the indexer in the settings.");
|
throw new IndexerAuthException("We are being redirected to the PTP login page. Most likely your session expired or was killed. Recheck your cookie or credentials and try testing the indexer.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (indexerHttpResponse.StatusCode == HttpStatusCode.Forbidden)
|
if (indexerHttpResponse.StatusCode == HttpStatusCode.Forbidden)
|
||||||
|
Reference in New Issue
Block a user