Skip local metadata providers when identifying

This commit is contained in:
Shadowghost 2024-06-02 09:17:43 +02:00
parent ab4315742f
commit a7e2271845

View File

@ -669,6 +669,10 @@ namespace MediaBrowser.Providers.Manager
temp.Item.Id = item.Id;
var foundImageTypes = new List<ImageType>();
// Only execute local providers if we are not identifying
if (options.SearchResult is null)
{
foreach (var provider in providers.OfType<ILocalMetadataProvider<TItemType>>())
{
var providerName = provider.GetType().Name;
@ -734,6 +738,7 @@ namespace MediaBrowser.Providers.Manager
refreshResult.ErrorMessage = ex.Message;
}
}
}
var isLocalLocked = temp.Item.IsLocked;
if (!isLocalLocked && (options.ReplaceAllMetadata || options.MetadataRefreshMode > MetadataRefreshMode.ValidationOnly))