added tvdb updates setting

This commit is contained in:
Luke Pulverenti 2013-07-25 16:59:28 -04:00
parent 16ef110196
commit 75ea0b4ff9
3 changed files with 8 additions and 2 deletions

View File

@ -225,6 +225,12 @@ namespace MediaBrowser.Model.Configuration
public ManualLoginCategory[] ManualLoginClients { get; set; }
/// <summary>
/// Gets or sets a value indicating whether [enable tv db updates].
/// </summary>
/// <value><c>true</c> if [enable tv db updates]; otherwise, <c>false</c>.</value>
public bool EnableTvDbUpdates { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
/// </summary>

View File

@ -121,7 +121,7 @@ namespace MediaBrowser.Providers.TV
protected override bool NeedsRefreshInternal(BaseItem item, BaseProviderInfo providerInfo)
{
// Don't proceed if there's local metadata
if (HasLocalMeta(item))
if (HasLocalMeta(item) && !ConfigurationManager.Configuration.EnableTvDbUpdates)
{
return false;
}

View File

@ -235,7 +235,7 @@ namespace MediaBrowser.Providers.TV
}
// Examine if there's no local metadata, or save local is on (to get updates)
if (!HasLocalMeta(series) || isForcedRefresh)
if (isForcedRefresh || ConfigurationManager.Configuration.EnableTvDbUpdates || !HasLocalMeta(series))
{
var seriesXmlPath = Path.Combine(seriesDataPath, seriesXmlFilename);
var actorsXmlPath = Path.Combine(seriesDataPath, "actors.xml");