diff --git a/ErsatzTV.Infrastructure/Search/Models/ElasticSearchItem.cs b/ErsatzTV.Infrastructure/Search/Models/ElasticSearchItem.cs index ec2d3917e..36310513f 100644 --- a/ErsatzTV.Infrastructure/Search/Models/ElasticSearchItem.cs +++ b/ErsatzTV.Infrastructure/Search/Models/ElasticSearchItem.cs @@ -29,16 +29,16 @@ public class ElasticSearchItem : MinimalElasticSearchItem public string MetadataKind { get; set; } [JsonPropertyName(LuceneSearchIndex.LanguageField)] - public List Language { get; set; } + public List Language { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.LanguageTagField)] - public List LanguageTag { get; set; } + public List LanguageTag { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.SubLanguageField)] - public List SubLanguage { get; set; } + public List SubLanguage { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.SubLanguageTagField)] - public List SubLanguageTag { get; set; } + public List SubLanguageTag { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.ChaptersField)] public int Chapters { get; set; } @@ -65,10 +65,10 @@ public class ElasticSearchItem : MinimalElasticSearchItem public string VideoDynamicRange { get; set; } [JsonPropertyName(LuceneSearchIndex.CollectionField)] - public List Collection { get; set; } + public List Collection { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.ContentRatingField)] - public List ContentRating { get; set; } + public List ContentRating { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.ReleaseDateField)] public string ReleaseDate { get; set; } @@ -80,43 +80,43 @@ public class ElasticSearchItem : MinimalElasticSearchItem public string Album { get; set; } [JsonPropertyName(LuceneSearchIndex.AlbumArtistField)] - public List AlbumArtist { get; set; } + public List AlbumArtist { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.PlotField)] public string Plot { get; set; } [JsonPropertyName(LuceneSearchIndex.GenreField)] - public List Genre { get; set; } + public List Genre { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.TagField)] - public List Tag { get; set; } + public List Tag { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.TagFullField)] - public List TagFull { get; set; } + public List TagFull { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.CountryField)] - public List Country { get; set; } + public List Country { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.StudioField)] - public List Studio { get; set; } + public List Studio { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.NetworkField)] - public List Network { get; set; } + public List Network { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.ArtistField)] - public List Artist { get; set; } + public List Artist { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.ActorField)] - public List Actor { get; set; } + public List Actor { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.DirectorField)] - public List Director { get; set; } + public List Director { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.WriterField)] - public List Writer { get; set; } + public List Writer { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.TraktListField)] - public List TraktList { get; set; } + public List TraktList { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.SeasonNumberField)] public int SeasonNumber { get; set; } @@ -128,25 +128,25 @@ public class ElasticSearchItem : MinimalElasticSearchItem public string ShowTitle { get; set; } [JsonPropertyName(LuceneSearchIndex.ShowGenreField)] - public List ShowGenre { get; set; } + public List ShowGenre { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.ShowTagField)] - public List ShowTag { get; set; } + public List ShowTag { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.ShowStudioField)] - public List ShowStudio { get; set; } + public List ShowStudio { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.ShowNetworkField)] - public List ShowNetwork { get; set; } + public List ShowNetwork { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.ShowContentRatingField)] - public List ShowContentRating { get; set; } + public List ShowContentRating { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.StyleField)] - public List Style { get; set; } + public List Style { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.MoodField)] - public List Mood { get; set; } + public List Mood { get; set; } = []; [JsonPropertyName(LuceneSearchIndex.LibraryFolderIdField)] public int LibraryFolderId { get; set; }