Fixed: Improve RarBG Error Handling

This commit is contained in:
Bakerboy448 2022-09-22 17:05:23 -05:00 committed by Qstick
parent f50e8f631e
commit f05333db51
1 changed files with 5 additions and 3 deletions

View File

@ -31,10 +31,12 @@ namespace NzbDrone.Core.Indexers.Rarbg
if (jsonResponse.Resource.error_code.HasValue)
{
if (jsonResponse.Resource.error_code == 20 || jsonResponse.Resource.error_code == 8
|| jsonResponse.Resource.error_code == 9 || jsonResponse.Resource.error_code == 10)
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 or imdbid not found
// No results, rate limit, tmdbid not found/invalid, or imdbid not found/invalid
return results;
}