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); 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

View File

@ -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)