From 90726086e5485d2afc70ccb3f54c06b99491295b Mon Sep 17 00:00:00 2001 From: WithoutPants <53250216+WithoutPants@users.noreply.github.com> Date: Fri, 16 Sep 2022 11:27:38 +1000 Subject: [PATCH] Fix relationship not loaded panic (#2915) --- internal/dlna/cds.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/dlna/cds.go b/internal/dlna/cds.go index 60429e86e..eb8b725c5 100644 --- a/internal/dlna/cds.go +++ b/internal/dlna/cds.go @@ -467,6 +467,10 @@ func (me *contentDirectoryService) getVideos(sceneFilter *models.SceneFilterType } } else { for _, s := range scenes { + if err := s.LoadPrimaryFile(ctx, me.repository.FileFinder); err != nil { + return err + } + objs = append(objs, sceneToContainer(s, parentID, host)) } }