aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Dlna
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-02-02 11:49:33 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-02-02 11:49:33 -0500
commit71bdb8dc8a03efbcff13bca847e1d40bf10dfb65 (patch)
tree6f654e50761d46d037379e5a8884536d7079e775 /MediaBrowser.Dlna
parent95c258f36e6068539f0eae325695f749e938edeb (diff)
update translations
Diffstat (limited to 'MediaBrowser.Dlna')
-rw-r--r--MediaBrowser.Dlna/Profiles/Xbox360Profile.cs2
-rw-r--r--MediaBrowser.Dlna/Profiles/Xml/Xbox 360.xml2
-rw-r--r--MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs4
3 files changed, 3 insertions, 5 deletions
diff --git a/MediaBrowser.Dlna/Profiles/Xbox360Profile.cs b/MediaBrowser.Dlna/Profiles/Xbox360Profile.cs
index 87a68df72..c792eb078 100644
--- a/MediaBrowser.Dlna/Profiles/Xbox360Profile.cs
+++ b/MediaBrowser.Dlna/Profiles/Xbox360Profile.cs
@@ -19,7 +19,7 @@ namespace MediaBrowser.Dlna.Profiles
ModelNumber = "12.0";
- FriendlyName = "Media Browser on ${ServerName} : 1 : Windows Media Connect";
+ FriendlyName = "${HostName} : 1 : Windows Media Connect";
ModelUrl = "http://www.microsoft.com/";
Manufacturer = "Microsoft Corporation";
diff --git a/MediaBrowser.Dlna/Profiles/Xml/Xbox 360.xml b/MediaBrowser.Dlna/Profiles/Xml/Xbox 360.xml
index 588623708..7a183396d 100644
--- a/MediaBrowser.Dlna/Profiles/Xml/Xbox 360.xml
+++ b/MediaBrowser.Dlna/Profiles/Xml/Xbox 360.xml
@@ -8,7 +8,7 @@
<HttpHeaderInfo name="User-Agent" value="Xenon" match="Substring" />
</Headers>
</Identification>
- <FriendlyName>Media Browser on ${ServerName} : 1 : Windows Media Connect</FriendlyName>
+ <FriendlyName>${HostName} : 1 : Windows Media Connect</FriendlyName>
<Manufacturer>Microsoft Corporation</Manufacturer>
<ManufacturerUrl>http://www.microsoft.com/</ManufacturerUrl>
<ModelName>Windows Media Connect</ModelName>
diff --git a/MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs b/MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs
index 824032689..f586e4fa1 100644
--- a/MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs
+++ b/MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs
@@ -110,13 +110,11 @@ namespace MediaBrowser.Dlna.Server
private string GetFriendlyName()
{
- var name = _profile.FriendlyName ?? string.Empty;
-
var characters = _serverName.Where(c => (char.IsLetterOrDigit(c) || c == '-')).ToArray();
var serverName = new string(characters);
- name = name.Replace("${ServerName}", serverName, StringComparison.OrdinalIgnoreCase);
+ var name = (_profile.FriendlyName ?? string.Empty).Replace("${HostName}", serverName, StringComparison.OrdinalIgnoreCase);
return name;
}