Fix relationship not loaded panic (#2915)

This commit is contained in:
WithoutPants
2022-09-16 11:27:38 +10:00
committed by GitHub
parent 7a75313a1c
commit 90726086e5

View File

@@ -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))
}
}