aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt <101580360+matt-teahan@users.noreply.github.com>2026-06-12 21:31:38 +0100
committerMatt <101580360+matt-teahan@users.noreply.github.com>2026-06-12 21:31:38 +0100
commit23f8ec93ab7fec0b69989b7af420499a8106fec6 (patch)
tree6118e69fb8c093c9cd6ef29a78e7c9ae34bfe77e
parentdd42a121c43721c8984ba0026d6fbed4a526d01f (diff)
Fix AlbumIds filtering by Name instead of by Id
-rw-r--r--CONTRIBUTORS.md1
-rw-r--r--Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs3
2 files changed, 2 insertions, 2 deletions
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index d70ffddfd7..4e323e332a 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -90,6 +90,7 @@
- [mark-monteiro](https://github.com/mark-monteiro)
- [MarkCiliaVincenti](https://github.com/MarkCiliaVincenti)
- [Martin Reuter](https://github.com/reuterma24)
+ - [Matt Teahan](https://github.com/matt-teahan)
- [Matt07211](https://github.com/Matt07211)
- [Matthew Jones](https://github.com/matthew-jones-uk)
- [Maxr1998](https://github.com/Maxr1998)
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.TranslateQuery.cs
index d905775aef..14ad4844ac 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 => filter.AlbumIds.Contains((Guid)e.ParentId!));
}
if (filter.ExcludeArtistIds.Length > 0)