Explorar el Código

Update DescriptionXmlBuilder.cs

BaronGreenback hace 4 años
padre
commit
f3a90bab47
Se han modificado 1 ficheros con 3 adiciones y 9 borrados
  1. 3 9
      Emby.Dlna/Server/DescriptionXmlBuilder.cs

+ 3 - 9
Emby.Dlna/Server/DescriptionXmlBuilder.cs

@@ -249,14 +249,8 @@ namespace Emby.Dlna.Server
 
 
             builder.Append("</serviceList>");
             builder.Append("</serviceList>");
         }
         }
-
-        /// <summary>
-        /// Builds a valid url for inclusion in the xml.
-        /// </summary>
-        /// <param name="url">Url to include.</param>
-        /// <param name="absoluteUrl">Optional. When set to true, the absolute url is always used.</param>
-        /// <returns>The url to use for the element.</returns>
-        private string BuildUrl(string url, bool absoluteUrl = false)
+        
+        private string BuildUrl(string ure)
         {
         {
             if (string.IsNullOrEmpty(url))
             if (string.IsNullOrEmpty(url))
             {
             {
@@ -267,7 +261,7 @@ namespace Emby.Dlna.Server
 
 
             url = "/dlna/" + _serverUdn + "/" + url;
             url = "/dlna/" + _serverUdn + "/" + url;
 
 
-            if (EnableAbsoluteUrls || absoluteUrl)
+            if (EnableAbsoluteUrls)
             {
             {
                 url = _serverAddress.TrimEnd('/') + url;
                 url = _serverAddress.TrimEnd('/') + url;
             }
             }