mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 09:59:06 -07:00
Removed useless method, Name => Jellyfin Server
This commit is contained in:
parent
924ec0c191
commit
e066a02403
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user