Respect lock state when updating season 0 name

This commit is contained in:
Joe Rogers 2022-01-04 16:45:55 +01:00
parent c6a1dcf420
commit 3eb4bbbb86
No known key found for this signature in database
GPG Key ID: 0074AD57B8FDBBB4

View File

@ -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;