mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-15 23:02:18 +01:00
pass requested fields to data layer
This commit is contained in:
@@ -350,21 +350,17 @@ namespace MediaBrowser.LocalMetadata.Savers
|
||||
}
|
||||
}
|
||||
|
||||
var hasProductionLocations = item as IHasProductionLocations;
|
||||
if (hasProductionLocations != null)
|
||||
{
|
||||
if (hasProductionLocations.ProductionLocations.Count > 0)
|
||||
{
|
||||
builder.Append("<Countries>");
|
||||
//if (hasProductionLocations.ProductionLocations.Count > 0)
|
||||
//{
|
||||
// builder.Append("<Countries>");
|
||||
|
||||
foreach (var name in hasProductionLocations.ProductionLocations)
|
||||
{
|
||||
builder.Append("<Country>" + SecurityElement.Escape(name) + "</Country>");
|
||||
}
|
||||
// foreach (var name in hasProductionLocations.ProductionLocations)
|
||||
// {
|
||||
// builder.Append("<Country>" + SecurityElement.Escape(name) + "</Country>");
|
||||
// }
|
||||
|
||||
builder.Append("</Countries>");
|
||||
}
|
||||
}
|
||||
// builder.Append("</Countries>");
|
||||
//}
|
||||
|
||||
var hasDisplayOrder = item as IHasDisplayOrder;
|
||||
if (hasDisplayOrder != null && !string.IsNullOrEmpty(hasDisplayOrder.DisplayOrder))
|
||||
@@ -457,20 +453,11 @@ namespace MediaBrowser.LocalMetadata.Savers
|
||||
}
|
||||
}
|
||||
|
||||
var hasTagline = item as IHasTaglines;
|
||||
if (hasTagline != null)
|
||||
if (!string.IsNullOrWhiteSpace(item.Tagline))
|
||||
{
|
||||
if (hasTagline.Taglines.Count > 0)
|
||||
{
|
||||
builder.Append("<Taglines>");
|
||||
|
||||
foreach (var tagline in hasTagline.Taglines)
|
||||
{
|
||||
builder.Append("<Tagline>" + SecurityElement.Escape(tagline) + "</Tagline>");
|
||||
}
|
||||
|
||||
builder.Append("</Taglines>");
|
||||
}
|
||||
builder.Append("<Taglines>");
|
||||
builder.Append("<Tagline>" + SecurityElement.Escape(item.Tagline) + "</Tagline>");
|
||||
builder.Append("</Taglines>");
|
||||
}
|
||||
|
||||
if (item.Genres.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user