From c352c4ac40538c3e3102f8fe804217ce2541c872 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 31 Oct 2016 15:09:18 -0400 Subject: [PATCH] update BaseXmlSaver --- .../Savers/BaseXmlSaver.cs | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs index 97780d0541..466e500566 100644 --- a/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs +++ b/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs @@ -541,29 +541,29 @@ namespace MediaBrowser.LocalMetadata.Savers // builder.Append(""); //} - //if (item.Tags.Count > 0) - //{ - // builder.Append(""); + if (item.Tags.Count > 0) + { + writer.WriteStartElement("Tags"); - // foreach (var tag in item.Tags) - // { - // builder.Append("" + SecurityElement.Escape(tag) + ""); - // } + foreach (var tag in item.Tags) + { + writer.WriteElementString("Tag", tag); + } - // builder.Append(""); - //} + writer.WriteEndElement(); + } - //if (item.Keywords.Count > 0) - //{ - // builder.Append(""); + if (item.Keywords.Count > 0) + { + writer.WriteStartElement("PlotKeywords"); - // foreach (var tag in item.Keywords) - // { - // builder.Append("" + SecurityElement.Escape(tag) + ""); - // } + foreach (var tag in item.Keywords) + { + writer.WriteElementString("PlotKeyword", tag); + } - // builder.Append(""); - //} + writer.WriteEndElement(); + } //var people = libraryManager.GetPeople(item);