Skip to content

Commit

Permalink
Fixed: Improve RarBG Error Handling
Browse files Browse the repository at this point in the history
Closes #1883
Closes #1884

(cherry picked from commit 7cd38bba841659a595fe4a0e14c478fc4e4047b1)
  • Loading branch information
bakerboy448 authored and Qstick committed Jan 24, 2023
1 parent b123952 commit 9235ae8
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 9235ae8

Please sign in to comment.