Respect lock state when updating season 0 name

pull/7105/head
Joe Rogers 3 years ago
parent c6a1dcf420
commit 3eb4bbbb86
No known key found for this signature in database
GPG Key ID: 0074AD57B8FDBBB4

@ -35,7 +35,7 @@ namespace MediaBrowser.Providers.TV
{
var updatedType = base.BeforeSaveInternal(item, isFullRefresh, updateType);
if (item.IndexNumber.HasValue && item.IndexNumber.Value == 0)
if (item.IndexNumber == 0 && !item.IsLocked && !item.LockedFields.Contains(MetadataField.Name))
{
var seasonZeroDisplayName = LibraryManager.GetLibraryOptions(item).SeasonZeroDisplayName;

Loading…
Cancel
Save