mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix generate preview overwrite behaviour (#3256)
This commit is contained in:
@@ -296,14 +296,13 @@ func (j *GenerateJob) queueSceneJobs(ctx context.Context, g *generate.Generator,
|
||||
}
|
||||
|
||||
if task.required() {
|
||||
sceneHash := scene.GetHash(task.fileNamingAlgorithm)
|
||||
addTask := false
|
||||
if j.overwrite || !task.doesVideoPreviewExist(sceneHash) {
|
||||
if j.overwrite || !task.doesVideoPreviewExist() {
|
||||
totals.previews++
|
||||
addTask = true
|
||||
}
|
||||
|
||||
if utils.IsTrue(j.input.ImagePreviews) && (j.overwrite || !task.doesImagePreviewExist(sceneHash)) {
|
||||
if utils.IsTrue(j.input.ImagePreviews) && (j.overwrite || !task.doesImagePreviewExist()) {
|
||||
totals.imagePreviews++
|
||||
addTask = true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user