New: Set KeepAlive for metadata requests

pull/865/head
ta264 6 years ago
parent 343b27b886
commit 5ac46270ed

@ -17,6 +17,7 @@ namespace NzbDrone.Common.Cloud
.CreateFactory();
Search = new HttpRequestBuilder("https://api.lidarr.audio/api/v0.4/{route}")
.KeepAlive()
.CreateFactory();
}

@ -26,7 +26,7 @@ namespace NzbDrone.Core.MetadataSource
{
if (_configService.MetadataSource.IsNotNullOrWhiteSpace())
{
return new HttpRequestBuilder(_configService.MetadataSource.TrimEnd("/") + "/{route}").CreateFactory();
return new HttpRequestBuilder(_configService.MetadataSource.TrimEnd("/") + "/{route}").KeepAlive().CreateFactory();
}
else
{

Loading…
Cancel
Save