mirror of https://github.com/lidarr/Lidarr
20 lines
415 B
C#
20 lines
415 B
C#
using RestSharp;
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
namespace NzbDrone.Core.Rest
|
|
{
|
|
public static class RestClientFactory
|
|
{
|
|
public static RestClient BuildClient(string baseUrl)
|
|
{
|
|
var restClient = new RestClient(baseUrl)
|
|
{
|
|
UserAgent = $"Sonarr/{BuildInfo.Version} ({OsInfo.Os})"
|
|
};
|
|
|
|
|
|
return restClient;
|
|
}
|
|
}
|
|
}
|