From ea2061a7d35d0bbfdf193a64e461d94c39fe59a1 Mon Sep 17 00:00:00 2001 From: bakerboy448 <55419169+bakerboy448@users.noreply.github.com> Date: Sun, 12 Feb 2023 05:46:27 -0600 Subject: [PATCH] fixup! Co-authored-by: Bogdan --- src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs b/src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs index f19419366..9f80745e8 100644 --- a/src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs +++ b/src/NzbDrone.Core/Indexers/Definitions/Rarbg/RarbgParser.cs @@ -50,7 +50,7 @@ namespace NzbDrone.Core.Indexers.Rarbg { var reason = $"{jsonResponse.Resource.error} ({jsonResponse.Resource.error_code})"; - if ((reason == "5") || (jsonResponse.Resource.rate_limit is 1 && jsonResponse.Resource.torrent_results == null)) + if (jsonResponse.Resource.error_code is 5 || (jsonResponse.Resource.rate_limit is 1 && jsonResponse.Resource.torrent_results == null)) { throw new TooManyRequestsException(indexerResponse.HttpRequest, indexerResponse.HttpResponse, TimeSpan.FromMinutes(5)); }