mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
Fixed: (Avistaz) Handle 429 Request Limit Reached
This commit is contained in:
parent
ea98d41472
commit
f4bbf2f8af
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz
|
|||
return torrentInfos.ToArray();
|
||||
}
|
||||
|
||||
if (indexerResponse.HttpResponse.StatusCode == HttpStatusCode.TooManyRequests)
|
||||
{
|
||||
throw new RequestLimitReachedException(indexerResponse, "API Request Limit Reached");
|
||||
}
|
||||
|
||||
if (indexerResponse.HttpResponse.StatusCode != HttpStatusCode.OK)
|
||||
{
|
||||
throw new IndexerException(indexerResponse, $"Unexpected response status {indexerResponse.HttpResponse.StatusCode} code from API request");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue