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

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