Skip to content

Commit

Permalink
Fix override of locked name
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowghost committed May 16, 2024
1 parent 1cdf0f5 commit af4b732
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MediaBrowser.Providers/TV/SeriesMetadataService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private async Task UpdateAndCreateSeasonsAsync(Series series, CancellationToken
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);
Expand Down

0 comments on commit af4b732

Please sign in to comment.