You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using NzbDrone.Common.EnvironmentInfo;
|
|
|
|
|
|
|
|
namespace NzbDrone.Common.Http
|
|
|
|
{
|
|
|
|
public static class UserAgentBuilder
|
|
|
|
{
|
|
|
|
public static string UserAgent { get; private set; }
|
|
|
|
public static string UserAgentSimplified { get; private set; }
|
|
|
|
|
|
|
|
static UserAgentBuilder()
|
|
|
|
{
|
|
|
|
UserAgent = string.Format("Sonarr/{0} ({1} {2})",
|
|
|
|
BuildInfo.Version,
|
|
|
|
OsInfo.Os, OsInfo.Version.ToString(2));
|
|
|
|
|
|
|
|
UserAgentSimplified = string.Format("Sonarr/{0}",
|
|
|
|
BuildInfo.Version.ToString(2));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|