mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-16 23:26:22 +00:00
Fix override of locked name
This commit is contained in:
@@ -244,7 +244,7 @@ namespace MediaBrowser.Providers.TV
|
||||
var season = await CreateSeasonAsync(series, seasonName, seasonNumber, cancellationToken).ConfigureAwait(false);
|
||||
series.AddChild(season);
|
||||
}
|
||||
else if (!string.Equals(existingSeason.Name, seasonName, StringComparison.Ordinal))
|
||||
else if (!existingSeason.LockedFields.Contains(MetadataField.Name) && !string.Equals(existingSeason.Name, seasonName, StringComparison.Ordinal))
|
||||
{
|
||||
existingSeason.Name = seasonName;
|
||||
await existingSeason.UpdateToRepositoryAsync(ItemUpdateType.MetadataEdit, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
Reference in New Issue
Block a user