Fixed: Use renewed mam_id from response to avoid invalid credentials after original one expires

This commit is contained in:
Bogdan
2024-08-27 05:46:54 +03:00
parent 7a5fa452f0
commit 123535b9a5
2 changed files with 36 additions and 18 deletions

View File

@@ -607,12 +607,7 @@ namespace NzbDrone.Core.Indexers
protected virtual bool CheckIfLoginNeeded(HttpResponse httpResponse)
{
if (httpResponse.StatusCode == HttpStatusCode.Unauthorized)
{
return true;
}
return false;
return httpResponse.StatusCode == HttpStatusCode.Unauthorized;
}
protected virtual Task DoLogin()