diff options
| author | JPVenson <github@jpb.email> | 2024-11-11 06:14:08 +0000 |
|---|---|---|
| committer | JPVenson <github@jpb.email> | 2024-11-11 06:14:08 +0000 |
| commit | fb48d0790f4b9be762443d239faaf77057713a51 (patch) | |
| tree | a31e31e9fe158cb92ceb1a3fa21649ba07d72b0b /Jellyfin.Server.Implementations/Item/BaseItemRepository.cs | |
| parent | 8dbbb3e243a417464e620721bdb6c567c02ee4f8 (diff) | |
Fixed Library DB lookup
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/BaseItemRepository.cs')
| -rw-r--r-- | Jellyfin.Server.Implementations/Item/BaseItemRepository.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs index d862ecf6c..619863fd5 100644 --- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs +++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs @@ -261,7 +261,12 @@ public sealed class BaseItemRepository( PrepareFilterQuery(filter); using var context = dbProvider.CreateDbContext(); - var dbQuery = TranslateQuery(context.BaseItems.AsNoTracking(), context, filter); + IQueryable<BaseItemEntity> dbQuery = context.BaseItems.AsNoTracking() + .Include(e => e.TrailerTypes) + .Include(e => e.Provider) + .Include(e => e.Images) + .Include(e => e.LockedFields); + dbQuery = TranslateQuery(dbQuery, context, filter); if (filter.Limit.HasValue || filter.StartIndex.HasValue) { var offset = filter.StartIndex ?? 0; |
