mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Merge pull request #4769 from crobibero/typo
Check correct fetcher list for provider name
This commit is contained in:
commit
4ecb30ef10
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue