mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
added tvdb updates setting
This commit is contained in:
parent
16ef110196
commit
75ea0b4ff9
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user