mirror of
https://github.com/Lidarr/Lidarr
synced 2026-05-09 05:06:09 +02:00
19 lines
415 B
C#
19 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;
|
|
}
|
|
}
|
|
}
|