|
|
|
@ -176,12 +176,12 @@ namespace Emby.Dlna.PlayTo
|
|
|
|
|
if (state != null)
|
|
|
|
|
{
|
|
|
|
|
var sendValue = state.AllowedValues.FirstOrDefault(a => string.Equals(a, commandParameter, StringComparison.OrdinalIgnoreCase)) ??
|
|
|
|
|
(state.AllowedValues.Count > 0 ? state.AllowedValues[0] : SecurityElement.Escape(value));
|
|
|
|
|
(state.AllowedValues.Count > 0 ? state.AllowedValues[0] : value);
|
|
|
|
|
|
|
|
|
|
return string.Format(CultureInfo.InvariantCulture, "<{0} xmlns:dt=\"urn:schemas-microsoft-com:datatypes\" dt:dt=\"{1}\">{2}</{0}>", argument.Name, state.DataType ?? "string", sendValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return string.Format(CultureInfo.InvariantCulture, "<{0}>{1}</{0}>", argument.Name, SecurityElement.Escape(value));
|
|
|
|
|
return string.Format(CultureInfo.InvariantCulture, "<{0}>{1}</{0}>", argument.Name, value);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|