aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-06-14 12:19:21 +0200
committerGitHub <noreply@github.com>2026-06-14 12:19:21 +0200
commit8028e1d59d2c93ff9811d519999ee94fd149ced6 (patch)
tree99410f6975c99b1bdda41ffa059c7d60bb6f608c /Jellyfin.Server.Implementations
parent1a9ed490838783e8b58c0abdd38667ff2f6cf452 (diff)
parent5df25cf688d98eeaee08857bda906ca1fa1abee2 (diff)
Merge pull request #17085 from matt-teahan/albumidsfixHEADmaster
Fix AlbumIds filtering by Name instead of by Id
Diffstat (limited to 'Jellyfin.Server.Implementations')
-rw-r--r--Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs
index d905775aef..3357f874d2 100644
--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs
+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs
@@ -586,8 +586,7 @@ public sealed partial class BaseItemRepository
if (filter.AlbumIds.Length > 0)
{
- var subQuery = context.BaseItems.WhereOneOrMany(filter.AlbumIds, f => f.Id);
- baseQuery = baseQuery.Where(e => subQuery.Any(f => f.Name == e.Album));
+ baseQuery = baseQuery.Where(e => e.ParentId.HasValue && filter.AlbumIds.Contains(e.ParentId.Value));
}
if (filter.ExcludeArtistIds.Length > 0)