mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
bug fix
This commit is contained in:
@@ -46,7 +46,7 @@ func (t *ScanTask) scanGallery() {
|
||||
tx := database.DB.MustBeginTx(ctx, nil)
|
||||
gallery, _ = qb.FindByChecksum(checksum, tx)
|
||||
if gallery != nil {
|
||||
exists, _ := utils.FileExists(t.FilePath)
|
||||
exists, _ := utils.FileExists(gallery.Path)
|
||||
if exists {
|
||||
logger.Infof("%s already exists. Duplicate of %s ", t.FilePath, gallery.Path)
|
||||
} else {
|
||||
@@ -101,7 +101,7 @@ func (t *ScanTask) scanScene() {
|
||||
ctx := context.TODO()
|
||||
tx := database.DB.MustBeginTx(ctx, nil)
|
||||
if scene != nil {
|
||||
exists, _ := utils.FileExists(t.FilePath)
|
||||
exists, _ := utils.FileExists(scene.Path)
|
||||
if exists {
|
||||
logger.Infof("%s already exists. Duplicate of %s ", t.FilePath, scene.Path)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user