mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-16 14:03:03 +03:00
update saving of ForcedSortName
This commit is contained in:
@@ -339,9 +339,10 @@ namespace MediaBrowser.LocalMetadata.Savers
|
|||||||
writer.WriteElementString("LocalTitle", item.Name);
|
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)
|
if (item.PremiereDate.HasValue)
|
||||||
|
|||||||
@@ -538,9 +538,10 @@ namespace MediaBrowser.XbmcMetadata.Savers
|
|||||||
writer.WriteElementString("year", item.ProductionYear.Value.ToString(UsCulture));
|
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))
|
if (!string.IsNullOrEmpty(item.OfficialRating))
|
||||||
|
|||||||
Reference in New Issue
Block a user