Skip to content

Commit

Permalink
Fixed: Improve RarBG Error Handling
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerboy448 committed Oct 3, 2022
1 parent 743d28b commit 7cd38bb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,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 == 13 || jsonResponse.Resource.error_code == 14
|| jsonResponse.Resource.error_code == 20)
{
// No results found
// No results, rate limit, tvdbid not found/invalid, or imdbid not found/invalid
return results;
}

Expand Down

0 comments on commit 7cd38bb

Please sign in to comment.