Do not run local providers if replacing and saving is enabled

This commit is contained in:
Shadowghost 2024-06-04 21:54:04 +02:00
parent a7e2271845
commit b14edb8876

View File

@ -670,8 +670,8 @@ namespace MediaBrowser.Providers.Manager
var foundImageTypes = new List<ImageType>();
// Only execute local providers if we are not identifying
if (options.SearchResult is null)
// Do not execute local providers if we are identifying or replacing with NFO saving enabled
if (options.SearchResult is null && !(item.IsSaveLocalMetadataEnabled() && options.ReplaceAllMetadata))
{
foreach (var provider in providers.OfType<ILocalMetadataProvider<TItemType>>())
{