From 9235ae85bc68d7c3c170ba6a7ed946db82194930 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 Closes #1883 Closes #1884 (cherry picked from commit 7cd38bba841659a595fe4a0e14c478fc4e4047b1) --- 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 b9a5a306f..0b5a501af 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; }