From f8170e30c7766283e3a5cca9509c61f0a266cbb5 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Sun, 19 Jul 2020 17:43:54 +0200 Subject: [PATCH] Index: Remove main files from related files list #391 Signed-off-by: Michael Mayer --- internal/photoprism/index.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/photoprism/index.go b/internal/photoprism/index.go index c28ef2919..f19592992 100644 --- a/internal/photoprism/index.go +++ b/internal/photoprism/index.go @@ -166,11 +166,11 @@ func (ind *Index) Start(opt IndexOptions) fs.Done { var files MediaFiles for _, f := range related.Files { - if ind.files.Ignore(f.RelName(originalsPath), f.ModTime(), opt.Rescan) { + if done[f.FileName()].Processed() || f.FileName() == fileName { continue } - if done[f.FileName()].Processed() { + if ind.files.Ignore(f.RelName(originalsPath), f.ModTime(), opt.Rescan) { continue }