mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
commit
8eaefce14e
2 changed files with 8 additions and 5 deletions
|
@ -91,8 +91,11 @@ namespace MediaBrowser.Controller.Providers
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the metadata providers.
|
/// Adds the metadata providers.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void AddParts(IEnumerable<IImageProvider> imageProviders, IEnumerable<IMetadataService> metadataServices, IEnumerable<IMetadataProvider> metadataProviders,
|
void AddParts(
|
||||||
IEnumerable<IMetadataSaver> savers,
|
IEnumerable<IImageProvider> imageProviders,
|
||||||
|
IEnumerable<IMetadataService> metadataServices,
|
||||||
|
IEnumerable<IMetadataProvider> metadataProviders,
|
||||||
|
IEnumerable<IMetadataSaver> metadataSavers,
|
||||||
IEnumerable<IExternalId> externalIds);
|
IEnumerable<IExternalId> externalIds);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -60,8 +60,8 @@ namespace MediaBrowser.Providers.Manager
|
||||||
|
|
||||||
private IMetadataService[] _metadataServices = Array.Empty<IMetadataService>();
|
private IMetadataService[] _metadataServices = Array.Empty<IMetadataService>();
|
||||||
private IMetadataProvider[] _metadataProviders = Array.Empty<IMetadataProvider>();
|
private IMetadataProvider[] _metadataProviders = Array.Empty<IMetadataProvider>();
|
||||||
private IEnumerable<IMetadataSaver> _savers;
|
private IMetadataSaver[] _savers = Array.Empty<IMetadataSaver>();
|
||||||
private IExternalId[] _externalIds;
|
private IExternalId[] _externalIds = Array.Empty<IExternalId>();
|
||||||
private bool _isProcessingRefreshQueue;
|
private bool _isProcessingRefreshQueue;
|
||||||
private bool _disposed;
|
private bool _disposed;
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ namespace MediaBrowser.Providers.Manager
|
||||||
_externalIds = externalIds.OrderBy(i => i.ProviderName).ToArray();
|
_externalIds = externalIds.OrderBy(i => i.ProviderName).ToArray();
|
||||||
|
|
||||||
_savers = metadataSavers
|
_savers = metadataSavers
|
||||||
.Where(i => !(i is IConfigurableProvider configurable) || configurable.IsEnabled)
|
.Where(i => i is not IConfigurableProvider configurable || configurable.IsEnabled)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue