Index: Remove main files from related files list #391

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-19 17:43:54 +02:00
parent f0cfe5ff3a
commit f8170e30c7

View file

@ -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
}