mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Overwrite phash during generate if flag set (#1633)
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
|
||||
type GeneratePhashTask struct {
|
||||
Scene models.Scene
|
||||
Overwrite bool
|
||||
fileNamingAlgorithm models.HashAlgorithm
|
||||
txnManager models.TransactionManager
|
||||
}
|
||||
@@ -58,5 +59,5 @@ func (t *GeneratePhashTask) Start(wg *sizedwaitgroup.SizedWaitGroup) {
|
||||
}
|
||||
|
||||
func (t *GeneratePhashTask) shouldGenerate() bool {
|
||||
return !t.Scene.Phash.Valid
|
||||
return t.Overwrite || !t.Scene.Phash.Valid
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user