fixes #501 - Some album years from last fm are coming back 1901

pull/702/head
Luke Pulverenti 11 years ago
parent f0542f69bc
commit 223f1daf33

@ -52,10 +52,15 @@ namespace MediaBrowser.Providers.Music
{
item.Overview = overview;
}
DateTime release;
DateTime.TryParse(data.releasedate, out release);
item.PremiereDate = release;
item.ProductionYear = release.Year;
if (DateTime.TryParse(data.releasedate, out release) && release.Year != 1901)
{
item.PremiereDate = release;
item.ProductionYear = release.Year;
}
if (data.toptags != null && !item.LockedFields.Contains(MetadataFields.Tags))
{
AddTags(item, data.toptags);

Loading…
Cancel
Save