mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-06-23 15:30:56 -04:00
Merge pull request #4769 from crobibero/typo
Check correct fetcher list for provider name
This commit is contained in:
commit
4ecb30ef10
@ -51,7 +51,7 @@ namespace MediaBrowser.Controller.BaseItemManager
|
|||||||
var typeOptions = libraryOptions.GetTypeOptions(baseItem.GetType().Name);
|
var typeOptions = libraryOptions.GetTypeOptions(baseItem.GetType().Name);
|
||||||
if (typeOptions != null)
|
if (typeOptions != null)
|
||||||
{
|
{
|
||||||
return typeOptions.ImageFetchers.Contains(name, StringComparer.OrdinalIgnoreCase);
|
return typeOptions.MetadataFetchers.Contains(name, StringComparer.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!libraryOptions.EnableInternetProviders)
|
if (!libraryOptions.EnableInternetProviders)
|
||||||
@ -61,7 +61,7 @@ namespace MediaBrowser.Controller.BaseItemManager
|
|||||||
|
|
||||||
var itemConfig = _serverConfigurationManager.Configuration.MetadataOptions.FirstOrDefault(i => string.Equals(i.ItemType, GetType().Name, StringComparison.OrdinalIgnoreCase));
|
var itemConfig = _serverConfigurationManager.Configuration.MetadataOptions.FirstOrDefault(i => string.Equals(i.ItemType, GetType().Name, StringComparison.OrdinalIgnoreCase));
|
||||||
|
|
||||||
return itemConfig == null || !itemConfig.DisabledImageFetchers.Contains(name, StringComparer.OrdinalIgnoreCase);
|
return itemConfig == null || !itemConfig.DisabledMetadataFetchers.Contains(name, StringComparer.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user