update saving of ForcedSortName

This commit is contained in:
Luke Pulverenti 2017-05-19 12:36:43 -04:00
parent 9459bf7ffc
commit ae2c4a912a
2 changed files with 6 additions and 4 deletions

View File

@ -339,9 +339,10 @@ namespace MediaBrowser.LocalMetadata.Savers
writer.WriteElementString("LocalTitle", item.Name);
}
if (!string.IsNullOrEmpty(item.ForcedSortName))
var forcedSortName = item.ForcedSortName;
if (!string.IsNullOrEmpty(forcedSortName))
{
writer.WriteElementString("SortTitle", item.ForcedSortName);
writer.WriteElementString("SortTitle", forcedSortName);
}
if (item.PremiereDate.HasValue)

View File

@ -538,9 +538,10 @@ namespace MediaBrowser.XbmcMetadata.Savers
writer.WriteElementString("year", item.ProductionYear.Value.ToString(UsCulture));
}
if (!string.IsNullOrEmpty(item.ForcedSortName))
var forcedSortName = item.ForcedSortName;
if (!string.IsNullOrEmpty(forcedSortName))
{
writer.WriteElementString("sorttitle", item.ForcedSortName);
writer.WriteElementString("sorttitle", forcedSortName);
}
if (!string.IsNullOrEmpty(item.OfficialRating))