|
|
|
@ -92,10 +92,7 @@ namespace MediaBrowser.Dlna.Server
|
|
|
|
|
builder.Append("<device>");
|
|
|
|
|
AppendDeviceProperties(builder);
|
|
|
|
|
|
|
|
|
|
if (_profile.EnableDlnaProtocol)
|
|
|
|
|
{
|
|
|
|
|
AppendIconList(builder);
|
|
|
|
|
}
|
|
|
|
|
AppendServiceList(builder);
|
|
|
|
|
builder.Append("</device>");
|
|
|
|
|
}
|
|
|
|
@ -111,6 +108,13 @@ namespace MediaBrowser.Dlna.Server
|
|
|
|
|
builder.Append("<dlna:X_DLNADOC xmlns:dlna=\"urn:schemas-dlna-org:device-1-0\">M-DMS-1.50</dlna:X_DLNADOC>");
|
|
|
|
|
builder.Append("<dlna:X_DLNADOC xmlns:dlna=\"urn:schemas-dlna-org:device-1-0\">" + SecurityElement.Escape(_profile.XDlnaDoc ?? string.Empty) + "</dlna:X_DLNADOC>");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
builder.Append("<dlna:X_DLNACAP>" + SecurityElement.Escape(_profile.XDlnaCap ?? string.Empty) + "</dlna:X_DLNACAP>");
|
|
|
|
|
|
|
|
|
|
builder.Append("<dlna:X_DLNADOC>" + SecurityElement.Escape(_profile.XDlnaDoc ?? string.Empty) + "</dlna:X_DLNADOC>");
|
|
|
|
|
builder.Append("<dlna:X_DLNADOC>M-DMS-1.50</dlna:X_DLNADOC>");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
builder.Append("<friendlyName>" + SecurityElement.Escape(GetFriendlyName()) + "</friendlyName>");
|
|
|
|
|
builder.Append("<manufacturer>" + SecurityElement.Escape(_profile.Manufacturer ?? string.Empty) + "</manufacturer>");
|
|
|
|
|