diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-06 12:30:44 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-06 12:30:44 -0500 |
| commit | 1539836ca1ca833715c9bc2b58cfc1efea47bb30 (patch) | |
| tree | 355de76f26f99f916cf0f72574af3372ab009612 /Emby.Dlna/ContentDirectory/ControlHandler.cs | |
| parent | 6aa106f1b7e5493b821240143f8cea6f0d4baddd (diff) | |
update didl xml
Diffstat (limited to 'Emby.Dlna/ContentDirectory/ControlHandler.cs')
| -rw-r--r-- | Emby.Dlna/ContentDirectory/ControlHandler.cs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/Emby.Dlna/ContentDirectory/ControlHandler.cs b/Emby.Dlna/ContentDirectory/ControlHandler.cs index dc599b993..8cb59b056 100644 --- a/Emby.Dlna/ContentDirectory/ControlHandler.cs +++ b/Emby.Dlna/ContentDirectory/ControlHandler.cs @@ -232,10 +232,7 @@ namespace Emby.Dlna.ContentDirectory writer.WriteAttributeString("xmlns", "upnp", null, NS_UPNP); //didl.SetAttribute("xmlns:sec", NS_SEC); - foreach (var att in _profile.XmlRootAttributes) - { - writer.WriteAttributeString(att.Name, att.Value); - } + DidlBuilder.WriteXmlRootAttributes(_profile, writer); var serverItem = GetItemFromObjectId(id, user); var item = serverItem.Item; @@ -282,7 +279,7 @@ namespace Emby.Dlna.ContentDirectory } } } - writer.WriteEndElement(); + writer.WriteFullEndElement(); //writer.WriteEndDocument(); } @@ -345,10 +342,7 @@ namespace Emby.Dlna.ContentDirectory writer.WriteAttributeString("xmlns", "upnp", null, NS_UPNP); //didl.SetAttribute("xmlns:sec", NS_SEC); - foreach (var att in _profile.XmlRootAttributes) - { - writer.WriteAttributeString(att.Name, att.Value); - } + DidlBuilder.WriteXmlRootAttributes(_profile, writer); var serverItem = GetItemFromObjectId(sparams["ContainerID"], user); @@ -375,7 +369,7 @@ namespace Emby.Dlna.ContentDirectory } } - writer.WriteEndElement(); + writer.WriteFullEndElement(); //writer.WriteEndDocument(); } |
