aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
diff options
context:
space:
mode:
authorJPVenson <github@jpb.email>2024-11-11 07:00:51 +0000
committerJPVenson <github@jpb.email>2024-11-11 07:00:51 +0000
commit741397f1beff1844b4ca2f9c84ec55b169f6ac54 (patch)
treeb90cfdd4bc1e9502038a57200d4e8cef6c51a78f /Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
parentc6e67edd8696351154d8c1bd0cabd5deb518873f (diff)
Fixed images not loading
Diffstat (limited to 'Jellyfin.Server.Implementations/Item/BaseItemRepository.cs')
-rw-r--r--Jellyfin.Server.Implementations/Item/BaseItemRepository.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
index 0e9996873..4af03abf1 100644
--- a/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
+++ b/Jellyfin.Server.Implementations/Item/BaseItemRepository.cs
@@ -1326,7 +1326,11 @@ public sealed class BaseItemRepository(
}
using var context = dbProvider.CreateDbContext();
- var item = context.BaseItems.AsNoTracking().FirstOrDefault(e => e.Id == id);
+ var item = context.BaseItems
+ .Include(e => e.TrailerTypes)
+ .Include(e => e.Provider)
+ .Include(e => e.Images)
+ .Include(e => e.LockedFields).AsNoTracking().FirstOrDefault(e => e.Id == id);
if (item is null)
{
return null;
@@ -1465,6 +1469,10 @@ public sealed class BaseItemRepository(
{
dto.ImageInfos = entity.Images.Select(Map).ToArray();
}
+ else
+ {
+ System.Console.WriteLine();
+ }
// dto.Type = entity.Type;
// dto.Data = entity.Data;