Co-authored-by: Bogdan <mynameisbogdan@users.noreply.github.com>
This commit is contained in:
bakerboy448 2023-02-12 05:46:27 -06:00 committed by Bogdan
parent ea6d01a49b
commit ea2061a7d3

View file

@ -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));
}