Dlna Server Discovery fix
This commit is contained in:
parent
999f022a37
commit
b57f05e571
|
@ -47,10 +47,12 @@ namespace MediaBrowser.Dlna.Server
|
||||||
|
|
||||||
private void AppendDeviceInfo(StringBuilder builder)
|
private void AppendDeviceInfo(StringBuilder builder)
|
||||||
{
|
{
|
||||||
|
builder.Append("<device>");
|
||||||
AppendDeviceProperties(builder);
|
AppendDeviceProperties(builder);
|
||||||
|
|
||||||
AppendIconList(builder);
|
AppendIconList(builder);
|
||||||
AppendServiceList(builder);
|
AppendServiceList(builder);
|
||||||
|
builder.Append("</device>");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AppendDeviceProperties(StringBuilder builder)
|
private void AppendDeviceProperties(StringBuilder builder)
|
||||||
|
@ -132,7 +134,7 @@ namespace MediaBrowser.Dlna.Server
|
||||||
Depth = "24",
|
Depth = "24",
|
||||||
Width = 48,
|
Width = 48,
|
||||||
Height = 48,
|
Height = 48,
|
||||||
Url = "/icons/small.jpg"
|
Url = "/mediabrowser/dlna/icons/small.jpg"
|
||||||
});
|
});
|
||||||
|
|
||||||
list.Add(new DeviceIcon
|
list.Add(new DeviceIcon
|
||||||
|
@ -141,7 +143,7 @@ namespace MediaBrowser.Dlna.Server
|
||||||
Depth = "24",
|
Depth = "24",
|
||||||
Width = 120,
|
Width = 120,
|
||||||
Height = 120,
|
Height = 120,
|
||||||
Url = "/icons/large.jpg"
|
Url = "/mediabrowser/dlna/icons/large.jpg"
|
||||||
});
|
});
|
||||||
|
|
||||||
list.Add(new DeviceIcon
|
list.Add(new DeviceIcon
|
||||||
|
@ -150,7 +152,7 @@ namespace MediaBrowser.Dlna.Server
|
||||||
Depth = "24",
|
Depth = "24",
|
||||||
Width = 48,
|
Width = 48,
|
||||||
Height = 48,
|
Height = 48,
|
||||||
Url = "/icons/small.png"
|
Url = "/mediabrowser/dlna/icons/small.png"
|
||||||
});
|
});
|
||||||
|
|
||||||
list.Add(new DeviceIcon
|
list.Add(new DeviceIcon
|
||||||
|
@ -159,7 +161,7 @@ namespace MediaBrowser.Dlna.Server
|
||||||
Depth = "24",
|
Depth = "24",
|
||||||
Width = 120,
|
Width = 120,
|
||||||
Height = 120,
|
Height = 120,
|
||||||
Url = "/icons/large.png"
|
Url = "/mediabrowser/dlna/icons/large.png"
|
||||||
});
|
});
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
|
@ -173,7 +175,7 @@ namespace MediaBrowser.Dlna.Server
|
||||||
{
|
{
|
||||||
ServiceType = "urn:schemas-upnp-org:service:ContentDirectory:1",
|
ServiceType = "urn:schemas-upnp-org:service:ContentDirectory:1",
|
||||||
ServiceId = "urn:upnp-org:serviceId:ContentDirectory",
|
ServiceId = "urn:upnp-org:serviceId:ContentDirectory",
|
||||||
ScpdUrl = "/contentdirectory.xml",
|
ScpdUrl = "/mediabrowser/dlna/contentdirectory.xml",
|
||||||
ControlUrl = "/servicecontrol"
|
ControlUrl = "/servicecontrol"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user