mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
update wizard function of enable/disable local metadata saving
This commit is contained in:
@@ -71,7 +71,7 @@ namespace MediaBrowser.Providers.Manager
|
||||
}
|
||||
|
||||
var itemOfType = (TItemType)item;
|
||||
var config = GetMetadataOptions(itemOfType);
|
||||
var config = ProviderManager.GetMetadataOptions(item);
|
||||
|
||||
var updateType = ItemUpdateType.Unspecified;
|
||||
var refreshResult = GetLastResult(item.Id);
|
||||
@@ -157,15 +157,6 @@ namespace MediaBrowser.Providers.Manager
|
||||
}
|
||||
}
|
||||
|
||||
private readonly MetadataOptions _defaultOptions = new MetadataOptions();
|
||||
protected MetadataOptions GetMetadataOptions(TItemType item)
|
||||
{
|
||||
var type = item.GetType().Name;
|
||||
return ServerConfigurationManager.Configuration.MetadataOptions
|
||||
.FirstOrDefault(i => string.Equals(i.ItemType, type, StringComparison.OrdinalIgnoreCase)) ??
|
||||
_defaultOptions;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Befores the metadata refresh.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user