Skip to content

Commit

Permalink
Fixed (RarBG): Improve Error Handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerboy448 committed Sep 22, 2022
1 parent 59e5b5b commit 07247a6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs
Expand Up @@ -39,11 +39,12 @@ public IList<ReleaseInfo> ParseResponse(IndexerResponse indexerResponse)

if (jsonResponse.Resource.error_code.HasValue)
{
if (jsonResponse.Resource.error_code == 20 || jsonResponse.Resource.error_code == 8
if (jsonResponse.Resource.error_code == 5 || jsonResponse.Resource.error_code == 8
|| jsonResponse.Resource.error_code == 9 || jsonResponse.Resource.error_code == 10
|| jsonResponse.Resource.error_code == 5)
|| jsonResponse.Resource.error_code == 13 || jsonResponse.Resource.error_code == 14
|| jsonResponse.Resource.error_code == 20)
{
// No results, rate limit, or imdbid not found
// No results, rate limit, tmdbid not found/invalid, or imdbid not found/invalid
return results;
}

Expand Down

0 comments on commit 07247a6

Please sign in to comment.