fixes #525 - Edit Run Time through Web Dashboard

This commit is contained in:
Luke Pulverenti 2013-09-13 11:26:43 -04:00
parent b1fd832c72
commit 041a1aece4
2 changed files with 9 additions and 2 deletions

View File

@ -33,6 +33,10 @@ namespace MediaBrowser.Model.Entities
/// <summary>
/// The overview
/// </summary>
Overview
Overview,
/// <summary>
/// The runtime
/// </summary>
Runtime
}
}

View File

@ -365,7 +365,10 @@ namespace MediaBrowser.Providers.TV
if (series.PremiereDate.HasValue)
series.ProductionYear = series.PremiereDate.Value.Year;
series.RunTimeTicks = TimeSpan.FromMinutes(doc.SafeGetInt32("//Runtime")).Ticks;
if (!series.LockedFields.Contains(MetadataFields.Runtime))
{
series.RunTimeTicks = TimeSpan.FromMinutes(doc.SafeGetInt32("//Runtime")).Ticks;
}
if (!series.LockedFields.Contains(MetadataFields.Studios))
{