mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-20 20:00:48 +02:00
Fixed: (MaM) Handle Auth Errors & Session Expiry
This commit is contained in:
parent
302ed91d05
commit
51e73205ba
1 changed files with 6 additions and 0 deletions
|
|
@ -317,6 +317,12 @@ public MyAnonamouseParser(MyAnonamouseSettings settings, IndexerCapabilitiesCate
|
|||
|
||||
public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)
|
||||
{
|
||||
// Throw auth errors here before we try to parse
|
||||
if (indexerResponse.HttpResponse.StatusCode == HttpStatusCode.Forbidden)
|
||||
{
|
||||
throw new IndexerAuthException("[403 Forbidden] - mam_session_id expired or invalid");
|
||||
}
|
||||
|
||||
// Throw common http errors here before we try to parse
|
||||
if (indexerResponse.HttpResponse.StatusCode != HttpStatusCode.OK)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue