mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
added tvdb updates setting
This commit is contained in:
parent
16ef110196
commit
75ea0b4ff9
3 changed files with 8 additions and 2 deletions
|
@ -225,6 +225,12 @@ namespace MediaBrowser.Model.Configuration
|
||||||
|
|
||||||
public ManualLoginCategory[] ManualLoginClients { get; set; }
|
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>
|
/// <summary>
|
||||||
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
|
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -121,7 +121,7 @@ namespace MediaBrowser.Providers.TV
|
||||||
protected override bool NeedsRefreshInternal(BaseItem item, BaseProviderInfo providerInfo)
|
protected override bool NeedsRefreshInternal(BaseItem item, BaseProviderInfo providerInfo)
|
||||||
{
|
{
|
||||||
// Don't proceed if there's local metadata
|
// Don't proceed if there's local metadata
|
||||||
if (HasLocalMeta(item))
|
if (HasLocalMeta(item) && !ConfigurationManager.Configuration.EnableTvDbUpdates)
|
||||||
{
|
{
|
||||||
return false;
|
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)
|
// 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 seriesXmlPath = Path.Combine(seriesDataPath, seriesXmlFilename);
|
||||||
var actorsXmlPath = Path.Combine(seriesDataPath, "actors.xml");
|
var actorsXmlPath = Path.Combine(seriesDataPath, "actors.xml");
|
||||||
|
|
Loading…
Reference in a new issue