Skip to content

Commit

Permalink
Fix: Key collision in images in SVR_AnimeSeries
Browse files Browse the repository at this point in the history
  • Loading branch information
Momongaka authored and da3dsoul committed Aug 21, 2024
1 parent 3bde4fe commit 83f740c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Shoko.Server/Models/SVR_AnimeSeries.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ public IReadOnlyList<IImageMetadata> GetImages(ImageEntityType? entityType = nul
.WhereNotNull()
.Select(preferredImage => preferredImage.GetImageMetadata())
.WhereNotNull()
.DistinctBy(image => image.ImageType)
.ToDictionary(image => image.ImageType);
var images = new List<IImageMetadata>();
if (!entityType.HasValue || entityType.Value is ImageEntityType.Poster)
Expand Down

0 comments on commit 83f740c

Please sign in to comment.