Fixed: Tweaked ratelimit logic for rarbg api.

This commit is contained in:
Taloth Saldono
2016-09-29 21:40:52 +02:00
parent e0d1e08f94
commit 7ef1ca8a00
2 changed files with 13 additions and 3 deletions
@@ -30,7 +30,8 @@ namespace NzbDrone.Core.Indexers.Rarbg
return _tokenCache.Get(settings.BaseUrl, () =>
{
var requestBuilder = new HttpRequestBuilder(settings.BaseUrl.Trim('/'))
.Resource("/pubapi_v2.php?get_token=get_token")
.WithRateLimit(3.0)
.Resource("/pubapi_v2.php?get_token=get_token&app_id=Sonarr")
.Accept(HttpAccept.Json);
if (settings.CaptchaToken.IsNotNullOrWhiteSpace())