New: Download Clients for Manual Grabs

This commit is contained in:
Qstick
2021-03-18 00:07:25 -04:00
parent fd27018caa
commit 881313ef2b
209 changed files with 12229 additions and 127 deletions

View File

@@ -481,10 +481,10 @@ namespace NzbDrone.Core.Indexers
return new IndexerResponse(request, response, stopWatch.ElapsedMilliseconds);
}
protected HttpResponse ExecuteAuth(HttpRequest request)
protected async Task<HttpResponse> ExecuteAuth(HttpRequest request)
{
var stopWatch = Stopwatch.StartNew();
var response = _httpClient.Execute(request);
var response = await _httpClient.ExecuteAsync(request);
stopWatch.Stop();
_eventAggregator.PublishEvent(new IndexerAuthEvent(Definition.Id, !response.HasHttpError, stopWatch.ElapsedMilliseconds));