소스 검색

get DLNA profile in XML request, correctly format UUID

InvoxiPlayGames 3 년 전
부모
커밋
dc8fdb154a
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)