瀏覽代碼

Merge pull request #7487 from InvoxiPlayGames/dlna-fix

Cody Robibero 3 年之前
父節點
當前提交
7fb21132dd
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Emby.Dlna/DlnaManager.cs
  2. 1 1
      Emby.Dlna/Main/DlnaEntryPoint.cs

+ 1 - 1
Emby.Dlna/DlnaManager.cs

@@ -456,7 +456,7 @@ namespace Emby.Dlna
         /// <inheritdoc />
         public string GetServerDescriptionXml(IHeaderDictionary headers, string serverUuId, string serverAddress)
         {
-            var profile = GetDefaultProfile();
+            var profile = GetProfile(headers) ?? GetDefaultProfile();
 
             var serverId = _appHost.SystemId;
 

+ 1 - 1
Emby.Dlna/Main/DlnaEntryPoint.cs

@@ -362,7 +362,7 @@ namespace Emby.Dlna.Main
                 guid = text.GetMD5();
             }
 
-            return guid.ToString("N", CultureInfo.InvariantCulture);
+            return guid.ToString("D", CultureInfo.InvariantCulture);
         }
 
         private void SetProperies(SsdpDevice device, string fullDeviceType)