diff options
| author | BaronGreenback <jimcartlidge@yahoo.co.uk> | 2020-09-25 18:46:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-25 18:46:52 +0100 |
| commit | f3a90bab477ed7008c2569dcd3d89f21a92558fb (patch) | |
| tree | 349b272e4164ab968f7a5fe3406f23ed91b8d2ce | |
| parent | 12b5f1127e0bef04173a9ad0f80b13e2ec86552f (diff) | |
Update DescriptionXmlBuilder.cs
| -rw-r--r-- | Emby.Dlna/Server/DescriptionXmlBuilder.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Emby.Dlna/Server/DescriptionXmlBuilder.cs b/Emby.Dlna/Server/DescriptionXmlBuilder.cs index 98945c244..573f7adc0 100644 --- a/Emby.Dlna/Server/DescriptionXmlBuilder.cs +++ b/Emby.Dlna/Server/DescriptionXmlBuilder.cs @@ -249,14 +249,8 @@ namespace Emby.Dlna.Server 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)) { @@ -267,7 +261,7 @@ namespace Emby.Dlna.Server url = "/dlna/" + _serverUdn + "/" + url; - if (EnableAbsoluteUrls || absoluteUrl) + if (EnableAbsoluteUrls) { url = _serverAddress.TrimEnd('/') + url; } |
