save series first air date in xml

pull/702/head
Luke Pulverenti 12 years ago
parent 9fbb196464
commit b7f927d43a

@ -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); XmlSaverHelpers.AddCommonNodes(item, builder);
builder.Append("</Series>"); builder.Append("</Series>");
@ -107,7 +112,8 @@ namespace MediaBrowser.Providers.Savers
"Status", "Status",
"Network", "Network",
"Airs_Time", "Airs_Time",
"Airs_DayOfWeek" "Airs_DayOfWeek",
"FirstAired"
}); });
// Set last refreshed so that the provider doesn't trigger after the file save // Set last refreshed so that the provider doesn't trigger after the file save

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

Loading…
Cancel
Save