Try again

This commit is contained in:
Bond_009 2020-01-27 23:34:40 +01:00
parent fc578de3b3
commit 6b68521bae
3 changed files with 5 additions and 5 deletions

View File

@ -268,7 +268,7 @@ namespace Emby.Dlna.ContentDirectory
var item = serverItem.Item;
int totalCount;
if (string.Equals(flag, "BrowseMetadata"))
if (string.Equals(flag, "BrowseMetadata", StringComparison.Ordinal))
{
totalCount = 1;

View File

@ -634,7 +634,7 @@ namespace Emby.Dlna.Didl
{
if (item.PremiereDate.HasValue)
{
AddValue(writer, "dc", "date", item.PremiereDate.Value.ToString("o"), NS_DC);
AddValue(writer, "dc", "date", item.PremiereDate.Value.ToString("o", CultureInfo.InvariantCulture), NS_DC);
}
}
@ -882,7 +882,7 @@ namespace Emby.Dlna.Didl
var albumartUrlInfo = GetImageUrl(imageInfo, _profile.MaxAlbumArtWidth, _profile.MaxAlbumArtHeight, "jpg");
writer.WriteStartElement("albumArtURI", NS_UPNP);
writer.WriteStartElement("upnp", "albumArtURI", NS_UPNP);
writer.WriteAttributeString("dlna", "profileID", NS_DLNA, _profile.AlbumArtPn);
writer.WriteString(albumartUrlInfo.Url);
writer.WriteFullEndElement();

View File

@ -72,7 +72,7 @@ namespace Emby.Dlna.Service
{
Encoding = Encoding.UTF8,
CloseOutput = false,
NamespaceHandling = NamespaceHandling.OmitDuplicates
ConformanceLevel = ConformanceLevel.Fragment
};
StringWriter builder = new StringWriterWithEncoding(Encoding.UTF8);
@ -96,7 +96,7 @@ namespace Emby.Dlna.Service
writer.WriteEndDocument();
}
var xml = builder.ToString().Replace("xmlns:m=", "xmlns:u=");
var xml = builder.ToString().Replace("xmlns:m=", "xmlns:u=", StringComparison.Ordinal);
var controlResponse = new ControlResponse
{