diff options
| author | Matt Teahan <101580360+matt-teahan@users.noreply.github.com> | 2026-06-13 21:04:33 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-13 21:04:33 +0100 |
| commit | 5df25cf688d98eeaee08857bda906ca1fa1abee2 (patch) | |
| tree | c0aa7832598c51e820df0ec1d9435a7fa9a64499 /Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs | |
| parent | 23f8ec93ab7fec0b69989b7af420499a8106fec6 (diff) | |
Apply ParentId.Value suggestion
Co-authored-by: Bond-009 <bond.009@outlook.com>
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs index 14ad4844ac..3357f874d2 100644 --- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs +++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs @@ -586,7 +586,7 @@ public sealed partial class BaseItemRepository if (filter.AlbumIds.Length > 0) { - baseQuery = baseQuery.Where(e => filter.AlbumIds.Contains((Guid)e.ParentId!)); + baseQuery = baseQuery.Where(e => e.ParentId.HasValue && filter.AlbumIds.Contains(e.ParentId.Value)); } if (filter.ExcludeArtistIds.Length > 0) |
