Merge pull request #4743 from crobibero/metadata-options

Actually use library options when filtering metadata providers
pull/4753/head
Claus Vium 4 years ago committed by GitHub
commit e85884ddb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,7 +48,7 @@ namespace MediaBrowser.Controller.BaseItemManager
return !baseItem.EnableMediaSourceDisplay; return !baseItem.EnableMediaSourceDisplay;
} }
var typeOptions = libraryOptions.GetTypeOptions(GetType().Name); var typeOptions = libraryOptions.GetTypeOptions(baseItem.GetType().Name);
if (typeOptions != null) if (typeOptions != null)
{ {
return typeOptions.ImageFetchers.Contains(name, StringComparer.OrdinalIgnoreCase); return typeOptions.ImageFetchers.Contains(name, StringComparer.OrdinalIgnoreCase);
@ -79,7 +79,7 @@ namespace MediaBrowser.Controller.BaseItemManager
return !baseItem.EnableMediaSourceDisplay; return !baseItem.EnableMediaSourceDisplay;
} }
var typeOptions = libraryOptions.GetTypeOptions(GetType().Name); var typeOptions = libraryOptions.GetTypeOptions(baseItem.GetType().Name);
if (typeOptions != null) if (typeOptions != null)
{ {
return typeOptions.ImageFetchers.Contains(name, StringComparer.OrdinalIgnoreCase); return typeOptions.ImageFetchers.Contains(name, StringComparer.OrdinalIgnoreCase);

Loading…
Cancel
Save