mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Fix review comment
Co-authored-by: Cody Robibero <cody@robibe.ro>
This commit is contained in:
parent
ac675318f8
commit
6e4710d048
@ -367,15 +367,14 @@ namespace MediaBrowser.Providers.Manager
|
||||
return _metadataProviders.OfType<IMetadataProvider<T>>()
|
||||
.Where(i => CanRefreshMetadata(i, item, typeOptions, includeDisabled, forceEnableInternetMetadata))
|
||||
.OrderBy(i =>
|
||||
{
|
||||
// local and remote providers will be interleaved in the final order
|
||||
// only relative order within a type matters: consumers of the list filter to one or the other
|
||||
switch (i)
|
||||
i switch
|
||||
{
|
||||
case ILocalMetadataProvider: return GetConfiguredOrder(localMetadataReaderOrder, i.Name);
|
||||
case IRemoteMetadataProvider: return GetConfiguredOrder(metadataFetcherOrder, i.Name);
|
||||
default: return int.MaxValue; // default to end
|
||||
}
|
||||
ILocalMetadataProvider => GetConfiguredOrder(localMetadataReaderOrder, i.Name),
|
||||
IRemoteMetadataProvider => GetConfiguredOrder(metadataFetcherOrder, i.Name),
|
||||
// Default to end
|
||||
_ => int.MaxValue
|
||||
})
|
||||
.ThenBy(GetDefaultOrder);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user