From 7cd38bba841659a595fe4a0e14c478fc4e4047b1 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Mon, 3 Oct 2022 12:17:24 -0500 Subject: [PATCH] Fixed: Improve RarBG Error Handling --- src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs b/src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs index c7c886093..c57756644 100644 --- a/src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs +++ b/src/NzbDrone.Core/Indexers/Rarbg/RarbgParser.cs @@ -30,9 +30,12 @@ namespace NzbDrone.Core.Indexers.Rarbg 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; }