mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Fix generate task override behaviour (#3661)
This commit is contained in:
@@ -20,7 +20,7 @@ func (t *GenerateSpriteTask) GetDescription() string {
|
||||
}
|
||||
|
||||
func (t *GenerateSpriteTask) Start(ctx context.Context) {
|
||||
if !t.Overwrite && !t.required() {
|
||||
if !t.required() {
|
||||
return
|
||||
}
|
||||
|
||||
@@ -54,6 +54,11 @@ func (t GenerateSpriteTask) required() bool {
|
||||
if t.Scene.Path == "" {
|
||||
return false
|
||||
}
|
||||
|
||||
if t.Overwrite {
|
||||
return true
|
||||
}
|
||||
|
||||
sceneHash := t.Scene.GetHash(t.fileNamingAlgorithm)
|
||||
return !t.doesSpriteExist(sceneHash)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user