New: Set KeepAlive for metadata requests

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

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

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

Loading…
Cancel
Save