Fixed: (MaM) Handle Auth Errors & Session Expiry

pull/932/head
bakerboy448 3 years ago committed by Qstick
parent 302ed91d05
commit 51e73205ba

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