|
|
@ -79,8 +79,6 @@ namespace NzbDrone.Core.Indexers.Rarbg
|
|
|
|
.Resource("/pubapi_v2.php")
|
|
|
|
.Resource("/pubapi_v2.php")
|
|
|
|
.Accept(HttpAccept.Json);
|
|
|
|
.Accept(HttpAccept.Json);
|
|
|
|
|
|
|
|
|
|
|
|
var httpRequest = new HttpRequest(Settings.BaseUrl + "/pubapi_v2.php", HttpAccept.Json);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
requestBuilder.AddQueryParam("mode", mode);
|
|
|
|
requestBuilder.AddQueryParam("mode", mode);
|
|
|
|
|
|
|
|
|
|
|
|
if (tvdbId.HasValue)
|
|
|
|
if (tvdbId.HasValue)
|
|
|
@ -104,7 +102,7 @@ namespace NzbDrone.Core.Indexers.Rarbg
|
|
|
|
requestBuilder.AddQueryParam("format", "json_extended");
|
|
|
|
requestBuilder.AddQueryParam("format", "json_extended");
|
|
|
|
requestBuilder.AddQueryParam("app_id", "Sonarr");
|
|
|
|
requestBuilder.AddQueryParam("app_id", "Sonarr");
|
|
|
|
|
|
|
|
|
|
|
|
yield return new IndexerRequest(httpRequest);
|
|
|
|
yield return new IndexerRequest(requestBuilder.Build());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|