update storage of genres, studios, tags, & keywords

This commit is contained in:
Luke Pulverenti
2016-05-31 14:07:54 -04:00
parent e0bfbffa75
commit 977f62336b
20 changed files with 58 additions and 106 deletions

View File

@@ -609,20 +609,16 @@ namespace MediaBrowser.LocalMetadata.Savers
}
}
var hasKeywords = item as IHasKeywords;
if (hasKeywords != null)
if (item.Keywords.Count > 0)
{
if (hasKeywords.Keywords.Count > 0)
builder.Append("<PlotKeywords>");
foreach (var tag in item.Keywords)
{
builder.Append("<PlotKeywords>");
foreach (var tag in hasKeywords.Keywords)
{
builder.Append("<PlotKeyword>" + SecurityElement.Escape(tag) + "</PlotKeyword>");
}
builder.Append("</PlotKeywords>");
builder.Append("<PlotKeyword>" + SecurityElement.Escape(tag) + "</PlotKeyword>");
}
builder.Append("</PlotKeywords>");
}
var people = libraryManager.GetPeople(item);