mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
update dlna server friendly name
This commit is contained in:
parent
eeef543989
commit
62cb2195ea
@ -15,10 +15,9 @@ namespace MediaBrowser.Dlna.Profiles
|
||||
|
||||
XDlnaDoc = "DMS-1.50";
|
||||
|
||||
FriendlyName = "Emby";
|
||||
Manufacturer = "Emby";
|
||||
ModelDescription = "Emby";
|
||||
ModelName = "Emby";
|
||||
ModelName = "Emby Server";
|
||||
ModelNumber = "Emby";
|
||||
ModelUrl = "http://emby.media/";
|
||||
ManufacturerUrl = "http://emby.media/";
|
||||
|
@ -138,6 +138,11 @@ namespace MediaBrowser.Dlna.Server
|
||||
|
||||
private string GetFriendlyName()
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(_profile.FriendlyName))
|
||||
{
|
||||
return _serverName;
|
||||
}
|
||||
|
||||
var characters = _serverName.Where(c => (char.IsLetterOrDigit(c) || c == '-')).ToArray();
|
||||
|
||||
var serverName = new string(characters);
|
||||
|
Loading…
Reference in New Issue
Block a user