save series first air date in xml

This commit is contained in:
Luke Pulverenti 2013-08-06 12:48:41 -04:00
parent 9fbb196464
commit b7f927d43a
2 changed files with 10 additions and 1 deletions

View File

@ -94,6 +94,11 @@ namespace MediaBrowser.Providers.Savers
}
}
if (series.PremiereDate.HasValue)
{
builder.Append("<FirstAired>" + SecurityElement.Escape(series.PremiereDate.Value.ToString("yyyy-MM-dd")) + "</FirstAired>");
}
XmlSaverHelpers.AddCommonNodes(item, builder);
builder.Append("</Series>");
@ -107,7 +112,8 @@ namespace MediaBrowser.Providers.Savers
"Status",
"Network",
"Airs_Time",
"Airs_DayOfWeek"
"Airs_DayOfWeek",
"FirstAired"
});
// Set last refreshed so that the provider doesn't trigger after the file save

View File

@ -68,6 +68,7 @@ namespace MediaBrowser.Providers.Savers
"MusicbrainzId",
"CollectionNumber",
"Genres",
"Genre",
"Studios",
"Tags",
"Added",
@ -367,6 +368,8 @@ namespace MediaBrowser.Providers.Savers
}
builder.Append("</Genres>");
builder.Append("<Genre>" + SecurityElement.Escape(string.Join("|", item.Genres.ToArray())) + "</Genre>");
}
if (item.Studios.Count > 0)