diff options
| author | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-20 01:20:58 +0100 |
|---|---|---|
| committer | Erwin de Haan <EraYaN@users.noreply.github.com> | 2019-01-20 01:20:58 +0100 |
| commit | e066a02403b5e850233e18321835a216514ae856 (patch) | |
| tree | c34a7c7be507428264e55bfd7fb7348619075601 | |
| parent | 924ec0c191b66520f7ec7d3f6dc556e06305846b (diff) | |
Removed useless method, Name => Jellyfin Server
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index 91ba3903d..f0e2eec20 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -442,7 +442,7 @@ namespace Emby.Server.Implementations /// Gets the current application server version /// </summary> /// <value>The application server version.</value> - public string ApplicationUserAgent => Name + "/" + ApplicationSemanticVersion; + public string ApplicationUserAgent => Name.Replace(' ','-') + "/" + ApplicationSemanticVersion; private string _productName; /// <summary> @@ -469,7 +469,7 @@ namespace Emby.Server.Implementations /// Gets the name. /// </summary> /// <value>The name.</value> - public string Name => "Jellyfin"; + public string Name => "Jellyfin Server"; private static Tuple<Assembly, string> GetAssembly(Type type) { @@ -1022,23 +1022,6 @@ namespace Emby.Server.Implementations return ApplicationUserAgent; } - private static string FormatAttribute(string str) - { - var arr = str.ToCharArray(); - - arr = Array.FindAll(arr, (c => (char.IsLetterOrDigit(c) - || char.IsWhiteSpace(c)))); - - var result = new string(arr); - - if (string.IsNullOrWhiteSpace(result)) - { - result = "Jellyfin"; - } - - return result; - } - protected virtual bool SupportsDualModeSockets => true; private X509Certificate GetCertificate(CertificateInfo info) |
