mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Cleaned up environment detection
This commit is contained in:
parent
cf77104a02
commit
f4c202441c
35 changed files with 112 additions and 95 deletions
17
src/NzbDrone.Common/Http/UserAgentBuilder.cs
Normal file
17
src/NzbDrone.Common/Http/UserAgentBuilder.cs
Normal file
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
|
||||
namespace NzbDrone.Common.Http
|
||||
{
|
||||
public static class UserAgentBuilder
|
||||
{
|
||||
public static string UserAgent { get; private set; }
|
||||
|
||||
static UserAgentBuilder()
|
||||
{
|
||||
UserAgent = String.Format("Sonarr/{0} ({1} {2}) ",
|
||||
BuildInfo.Version,
|
||||
OsInfo.Os, OsInfo.Version.ToString(2));
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue