mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-27 10:58:44 +01:00
Add missing checks for item locked state in metadata updates
This commit is contained in:
@@ -334,6 +334,12 @@ namespace MediaBrowser.Providers.Manager
|
||||
updateType |= UpdateCumulativeRunTimeTicks(item, children);
|
||||
updateType |= UpdateDateLastMediaAdded(item, children);
|
||||
|
||||
// don't update user-changeable metadata for locked items
|
||||
if (item.IsLocked)
|
||||
{
|
||||
return updateType;
|
||||
}
|
||||
|
||||
if (EnableUpdatingPremiereDateFromChildren)
|
||||
{
|
||||
updateType |= UpdatePremiereDate(item, children);
|
||||
|
||||
Reference in New Issue
Block a user