The Free Software Media System - Server Backend & API
Remove Emby branding from DLNA server
Ben Mageef7061e353e05
diff --git a/Emby.Dlna/Api/DlnaServerService.cs b/Emby.Dlna/Api/DlnaServerService.csindex 663728f362..194ae73e06 100644--- a/Emby.Dlna/Api/DlnaServerService.cs+++ b/Emby.Dlna/Api/DlnaServerService.cs@@ -224,8 +224,10 @@ namespace Emby.Dlna.Apivar first = pathInfo[0];// backwards compatibility+ // TODO: Work out what this is doing.if (string.Equals(first, "mediabrowser", StringComparison.OrdinalIgnoreCase) ||- string.Equals(first, "emby", StringComparison.OrdinalIgnoreCase))+ string.Equals(first, "emby", StringComparison.OrdinalIgnoreCase) ||+ string.Equals(first, "jellyfin", StringComparison.OrdinalIgnoreCase )){index++;}diff --git a/Emby.Dlna/Main/DlnaEntryPoint.cs b/Emby.Dlna/Main/DlnaEntryPoint.csindex 4bab30337f..b820b46c33 100644--- a/Emby.Dlna/Main/DlnaEntryPoint.cs+++ b/Emby.Dlna/Main/DlnaEntryPoint.cs@@ -272,9 +272,9 @@ namespace Emby.Dlna.Main{CacheLifetime = TimeSpan.FromSeconds(1800), //How long SSDP clients can cache this info.Location = uri, // Must point to the URL that serves your devices UPnP description document.- FriendlyName = "Emby Server",- Manufacturer = "Emby",- ModelName = "Emby Server",+ FriendlyName = "Jellyfin",+ Manufacturer = "Jellyfin",+ ModelName = "Jellyfin Media Player",Uuid = udn// This must be a globally unique value that survives reboots etc. Get from storage or embedded hardware etc.};diff --git a/Emby.Dlna/PlayTo/SsdpHttpClient.cs b/Emby.Dlna/PlayTo/SsdpHttpClient.csindex eaafaa65b1..bfd163bf16 100644--- a/Emby.Dlna/PlayTo/SsdpHttpClient.cs+++ b/Emby.Dlna/PlayTo/SsdpHttpClient.cs@@ -14,7 +14,7 @@ namespace Emby.Dlna.PlayTopublic class SsdpHttpClient{private const string USERAGENT = "Microsoft-Windows/6.2 UPnP/1.0 Microsoft-DLNA DLNADOC/1.50";- private const string FriendlyName = "Emby";+ private const string FriendlyName = "Jellyfin";private readonly IHttpClient _httpClient;private readonly IServerConfigurationManager _config;diff --git a/Emby.Dlna/Profiles/DefaultProfile.cs b/Emby.Dlna/Profiles/DefaultProfile.csindex ddc575700f..ca98adfeb8 100644--- a/Emby.Dlna/Profiles/DefaultProfile.cs+++ b/Emby.Dlna/Profiles/DefaultProfile.cs@@ -14,9 +14,9 @@ namespace Emby.Dlna.ProfilesProtocolInfo = "http-get:*:video/mpeg:*,http-get:*:video/mp4:*,http-get:*:video/vnd.dlna.mpeg-tts:*,http-get:*:video/avi:*,http-get:*:video/x-matroska:*,http-get:*:video/x-ms-wmv:*,http-get:*:video/wtv:*,http-get:*:audio/mpeg:*,http-get:*:audio/mp3:*,http-get:*:audio/mp4:*,http-get:*:audio/x-ms-wma*,http-get:*:audio/wav:*,http-get:*:audio/L16:*,http-get:*image/jpeg:*,http-get:*image/png:*,http-get:*image/gif:*,http-get:*image/tiff:*";- Manufacturer = "Emby";+ Manufacturer = "Jellyfin";ModelDescription = "UPnP/AV 1.0 Compliant Media Server";- ModelName = "Emby Server";+ ModelName = "Jellyfin Media Player";ModelNumber = "01";ModelUrl = "https://github.com/jellyfin/jellyfin";ManufacturerUrl = "https://github.com/jellyfin/jellyfin";diff --git a/Emby.Dlna/Server/DescriptionXmlBuilder.cs b/Emby.Dlna/Server/DescriptionXmlBuilder.csindex 988d45e075..0c0c367e43 100644--- a/Emby.Dlna/Server/DescriptionXmlBuilder.cs+++ b/Emby.Dlna/Server/DescriptionXmlBuilder.cs@@ -217,7 +217,7 @@ namespace Emby.Dlna.Server{if (string.IsNullOrEmpty(_profile.FriendlyName)){- return "Emby - " + _serverName;+ return "Jellyfin - " + _serverName;}var characterList = new List<char>();