mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Merge pull request #106 from bnkai/scan_ign_dupes
fix for my own added bug ....
This commit is contained in:
commit
32a4f34c7c
1 changed files with 2 additions and 2 deletions
|
|
@ -47,7 +47,7 @@ func (t *ScanTask) scanGallery() {
|
||||||
tx := database.DB.MustBeginTx(ctx, nil)
|
tx := database.DB.MustBeginTx(ctx, nil)
|
||||||
gallery, _ = qb.FindByChecksum(checksum, tx)
|
gallery, _ = qb.FindByChecksum(checksum, tx)
|
||||||
if gallery != nil {
|
if gallery != nil {
|
||||||
exists, _ := utils.FileExists(t.FilePath)
|
exists, _ := utils.FileExists(gallery.Path)
|
||||||
if exists {
|
if exists {
|
||||||
logger.Infof("%s already exists. Duplicate of %s ", t.FilePath, gallery.Path)
|
logger.Infof("%s already exists. Duplicate of %s ", t.FilePath, gallery.Path)
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -102,7 +102,7 @@ func (t *ScanTask) scanScene() {
|
||||||
ctx := context.TODO()
|
ctx := context.TODO()
|
||||||
tx := database.DB.MustBeginTx(ctx, nil)
|
tx := database.DB.MustBeginTx(ctx, nil)
|
||||||
if scene != nil {
|
if scene != nil {
|
||||||
exists, _ := utils.FileExists(t.FilePath)
|
exists, _ := utils.FileExists(scene.Path)
|
||||||
if exists {
|
if exists {
|
||||||
logger.Infof("%s already exists. Duplicate of %s ", t.FilePath, scene.Path)
|
logger.Infof("%s already exists. Duplicate of %s ", t.FilePath, scene.Path)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue