aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Teahan <101580360+matt-teahan@users.noreply.github.com>2026-06-13 21:04:33 +0100
committerGitHub <noreply@github.com>2026-06-13 21:04:33 +0100
commit5df25cf688d98eeaee08857bda906ca1fa1abee2 (patch)
treec0aa7832598c51e820df0ec1d9435a7fa9a64499
parent23f8ec93ab7fec0b69989b7af420499a8106fec6 (diff)
Apply ParentId.Value suggestion
Co-authored-by: Bond-009 <bond.009@outlook.com>
-rw-r--r--Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs2
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)