Add missing checks for item locked state in metadata updates

This commit is contained in:
Joe Rogers
2023-02-12 21:59:58 -05:00
parent 1c72a8e006
commit 2d2b0a528c
3 changed files with 16 additions and 1 deletions
@@ -54,6 +54,12 @@ namespace MediaBrowser.Providers.Music
{
var updateType = base.UpdateMetadataFromChildren(item, children, isFullRefresh, currentUpdateType);
// don't update user-changeable metadata for locked items
if (item.IsLocked)
{
return updateType;
}
if (isFullRefresh || currentUpdateType > ItemUpdateType.None)
{
if (!item.LockedFields.Contains(MetadataField.Name))