Default SetCoverImage to true in identify (#4855)

This commit is contained in:
WithoutPants
2024-05-20 13:13:16 +10:00
committed by GitHub
parent b12269e477
commit 4d3dc0aec8

View File

@@ -252,7 +252,8 @@ func (t *SceneIdentifier) getSceneUpdater(ctx context.Context, s *models.Scene,
}
}
if utils.IsTrue(options.SetCoverImage) {
// SetCoverImage defaults to true if unset
if options.SetCoverImage == nil || *options.SetCoverImage {
ret.CoverImage, err = rel.cover(ctx)
if err != nil {
return nil, err