aboutsummaryrefslogtreecommitdiff
path: root/Emby.Dlna/ContentDirectory/ControlHandler.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-06 12:30:44 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2016-11-06 12:30:44 -0500
commit1539836ca1ca833715c9bc2b58cfc1efea47bb30 (patch)
tree355de76f26f99f916cf0f72574af3372ab009612 /Emby.Dlna/ContentDirectory/ControlHandler.cs
parent6aa106f1b7e5493b821240143f8cea6f0d4baddd (diff)
update didl xml
Diffstat (limited to 'Emby.Dlna/ContentDirectory/ControlHandler.cs')
-rw-r--r--Emby.Dlna/ContentDirectory/ControlHandler.cs14
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();
}