Fixes 'replace missing metadata' overwrites existing metadata that does exist (#11136)

This commit is contained in:
scampower3 2024-03-18 22:39:30 +08:00 committed by GitHub
parent 2d1cf803d3
commit 4bcabbde7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -773,7 +773,8 @@ namespace MediaBrowser.Providers.Manager
MergeData(metadata, temp, Array.Empty<MetadataField>(), false, false); MergeData(metadata, temp, Array.Empty<MetadataField>(), false, false);
} }
MergeData(temp, metadata, item.LockedFields, true, false); // Will always replace all metadata when Scan for new and updated files is used. Else, follow the options.
MergeData(temp, metadata, item.LockedFields, options.MetadataRefreshMode == MetadataRefreshMode.Default || options.ReplaceAllMetadata, false);
} }
} }
} }