Add remote trailer to xml

This commit is contained in:
Luke Pulverenti 2013-06-27 12:58:28 -04:00
parent cf61bf72dc
commit 414e344f4b

View File

@ -70,7 +70,8 @@ namespace MediaBrowser.Providers.Savers
"Studios",
"Tags",
"Added",
"LockData"
"LockData",
"Trailer"
});
var position = xml.ToString().LastIndexOf("</", StringComparison.OrdinalIgnoreCase);
@ -199,6 +200,11 @@ namespace MediaBrowser.Providers.Savers
builder.Append("<PremiereDate>" + SecurityElement.Escape(item.PremiereDate.Value.ToString("yyyy-MM-dd")) + "</PremiereDate>");
}
if (item.RemoteTrailers.Count > 0)
{
builder.Append("<Trailer>" + SecurityElement.Escape(item.RemoteTrailers[0].Url) + "</Trailer>");
}
if (item.Budget.HasValue)
{
builder.Append("<Budget>" + SecurityElement.Escape(item.Budget.Value.ToString(UsCulture)) + "</Budget>");