Try possible solutions

This commit is contained in:
Bond_009 2020-01-27 22:43:58 +01:00
parent bade35958a
commit fc578de3b3
2 changed files with 3 additions and 2 deletions

View File

@ -882,7 +882,7 @@ namespace Emby.Dlna.Didl
var albumartUrlInfo = GetImageUrl(imageInfo, _profile.MaxAlbumArtWidth, _profile.MaxAlbumArtHeight, "jpg");
writer.WriteStartElement("upnp", "albumArtURI", NS_UPNP);
writer.WriteStartElement("albumArtURI", NS_UPNP);
writer.WriteAttributeString("dlna", "profileID", NS_DLNA, _profile.AlbumArtPn);
writer.WriteString(albumartUrlInfo.Url);
writer.WriteFullEndElement();

View File

@ -71,7 +71,8 @@ namespace Emby.Dlna.Service
var settings = new XmlWriterSettings
{
Encoding = Encoding.UTF8,
CloseOutput = false
CloseOutput = false,
NamespaceHandling = NamespaceHandling.OmitDuplicates
};
StringWriter builder = new StringWriterWithEncoding(Encoding.UTF8);