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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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