From b57f05e571754970f619e3f19cdde44cce7b6b5b Mon Sep 17 00:00:00 2001 From: 7illusions Date: Tue, 15 Apr 2014 09:27:20 +0200 Subject: [PATCH] Dlna Server Discovery fix --- MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs b/MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs index 2c0b3a2c9..4208f0176 100644 --- a/MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs +++ b/MediaBrowser.Dlna/Server/DescriptionXmlBuilder.cs @@ -47,10 +47,12 @@ namespace MediaBrowser.Dlna.Server private void AppendDeviceInfo(StringBuilder builder) { + builder.Append(""); AppendDeviceProperties(builder); AppendIconList(builder); AppendServiceList(builder); + builder.Append(""); } private void AppendDeviceProperties(StringBuilder builder) @@ -132,7 +134,7 @@ namespace MediaBrowser.Dlna.Server Depth = "24", Width = 48, Height = 48, - Url = "/icons/small.jpg" + Url = "/mediabrowser/dlna/icons/small.jpg" }); list.Add(new DeviceIcon @@ -141,7 +143,7 @@ namespace MediaBrowser.Dlna.Server Depth = "24", Width = 120, Height = 120, - Url = "/icons/large.jpg" + Url = "/mediabrowser/dlna/icons/large.jpg" }); list.Add(new DeviceIcon @@ -150,7 +152,7 @@ namespace MediaBrowser.Dlna.Server Depth = "24", Width = 48, Height = 48, - Url = "/icons/small.png" + Url = "/mediabrowser/dlna/icons/small.png" }); list.Add(new DeviceIcon @@ -159,7 +161,7 @@ namespace MediaBrowser.Dlna.Server Depth = "24", Width = 120, Height = 120, - Url = "/icons/large.png" + Url = "/mediabrowser/dlna/icons/large.png" }); return list; @@ -173,7 +175,7 @@ namespace MediaBrowser.Dlna.Server { ServiceType = "urn:schemas-upnp-org:service:ContentDirectory:1", ServiceId = "urn:upnp-org:serviceId:ContentDirectory", - ScpdUrl = "/contentdirectory.xml", + ScpdUrl = "/mediabrowser/dlna/contentdirectory.xml", ControlUrl = "/servicecontrol" });