diff --git a/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs b/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs index 2319ac207..60bd2ed2e 100644 --- a/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs +++ b/src/NzbDrone.Core/Indexers/Rarbg/RarbgRequestGenerator.cs @@ -78,8 +78,6 @@ private IEnumerable GetPagedRequests(string mode, int? tvdbId, s var requestBuilder = new HttpRequestBuilder(Settings.BaseUrl) .Resource("/pubapi_v2.php") .Accept(HttpAccept.Json); - - var httpRequest = new HttpRequest(Settings.BaseUrl + "/pubapi_v2.php", HttpAccept.Json); requestBuilder.AddQueryParam("mode", mode); @@ -104,7 +102,7 @@ private IEnumerable GetPagedRequests(string mode, int? tvdbId, s requestBuilder.AddQueryParam("format", "json_extended"); requestBuilder.AddQueryParam("app_id", "Sonarr"); - yield return new IndexerRequest(httpRequest); + yield return new IndexerRequest(requestBuilder.Build()); } } }