diff options
| author | JPVenson <github@jpb.email> | 2024-10-09 23:19:24 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2024-10-09 23:19:24 +0000 |
| commit | 2955f2f56275fca01cd3f586b3475dcdfbea78ed (patch) | |
| tree | c9202c3ad903e704058c9d9b745ef90d1c150ca9 /Jellyfin.Api/Controllers/MoviesController.cs | |
| parent | eb601e944cd392a8007b540ab5627977a37368c6 (diff) | |
Fixed AncestorIds and applied review comments
Diffstat (limited to 'Jellyfin.Api/Controllers/MoviesController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/MoviesController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/MoviesController.cs b/Jellyfin.Api/Controllers/MoviesController.cs index f537ffa11e..c2bdf71c5a 100644 --- a/Jellyfin.Api/Controllers/MoviesController.cs +++ b/Jellyfin.Api/Controllers/MoviesController.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Collections.Immutable; using System.Globalization; using System.Linq; using Jellyfin.Api.Extensions; @@ -120,7 +121,7 @@ public class MoviesController : BaseJellyfinApiController DtoOptions = dtoOptions }); - var mostRecentMovies = recentlyPlayedMovies.Take(Math.Min(recentlyPlayedMovies.Count, 6)); + var mostRecentMovies = recentlyPlayedMovies.Take(Math.Min(recentlyPlayedMovies.Count, 6)).ToImmutableList(); // Get recently played directors var recentDirectors = GetDirectors(mostRecentMovies) .ToList(); |
