diff --git a/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs b/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs index 5ae7f11b5..9cfca3086 100644 --- a/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs +++ b/MediaBrowser.LocalMetadata/Savers/BaseXmlSaver.cs @@ -329,20 +329,20 @@ namespace MediaBrowser.LocalMetadata.Savers writer.WriteElementString("Type", item.DisplayMediaType); } - //if (item.CriticRating.HasValue) - //{ - // builder.Append("" + SecurityElement.Escape(item.CriticRating.Value.ToString(UsCulture)) + ""); - //} + if (item.CriticRating.HasValue) + { + writer.WriteElementString("CriticRating", item.CriticRating.Value.ToString(UsCulture)); + } - //if (!string.IsNullOrEmpty(item.CriticRatingSummary)) - //{ - // builder.Append(""); - //} + if (!string.IsNullOrEmpty(item.CriticRatingSummary)) + { + writer.WriteElementString("CriticRatingSummary", item.CriticRatingSummary); + } - //if (!string.IsNullOrEmpty(item.Overview)) - //{ - // builder.Append(""); - //} + if (!string.IsNullOrEmpty(item.Overview)) + { + writer.WriteElementString("Overview", item.Overview); + } //var hasOriginalTitle = item as IHasOriginalTitle; //if (hasOriginalTitle != null)