Skip to content

Commit

Permalink
Fixed a bug where cover image could not be turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
majora2007 committed Feb 18, 2025
1 parent a9e1f23 commit e1c5eeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion API/Controllers/SettingsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -567,14 +567,15 @@ public async Task<ActionResult<MetadataSettingsDto>> UpdateMetadataSettings(Meta
existingMetadataSetting.EnableStartDate = dto.EnableStartDate;
existingMetadataSetting.EnableGenres = dto.EnableGenres;
existingMetadataSetting.EnableTags = dto.EnableTags;
existingMetadataSetting.PersonRoles = dto.PersonRoles;
existingMetadataSetting.FirstLastPeopleNaming = dto.FirstLastPeopleNaming;
existingMetadataSetting.EnableCoverImage = dto.EnableCoverImage;

existingMetadataSetting.AgeRatingMappings = dto.AgeRatingMappings ?? [];

existingMetadataSetting.Blacklist = dto.Blacklist.Where(s => !string.IsNullOrWhiteSpace(s)).DistinctBy(d => d.ToNormalized()).ToList() ?? [];
existingMetadataSetting.Whitelist = dto.Whitelist.Where(s => !string.IsNullOrWhiteSpace(s)).DistinctBy(d => d.ToNormalized()).ToList() ?? [];
existingMetadataSetting.Overrides = dto.Overrides.ToList() ?? [];
existingMetadataSetting.PersonRoles = dto.PersonRoles ?? [];

// Handle Field Mappings
if (dto.FieldMappings != null)
Expand Down

0 comments on commit e1c5eeb

Please sign in to comment.