diff --git a/internal/photoprism/import_worker.go b/internal/photoprism/import_worker.go index 9c3f2f475..1281d4e78 100644 --- a/internal/photoprism/import_worker.go +++ b/internal/photoprism/import_worker.go @@ -78,6 +78,14 @@ func importWorker(jobs <-chan ImportJob) { } } + related, err := importedMainFile.RelatedFiles() + + if err != nil { + log.Errorf("import: could not index \"%s\" (%s)", destinationMainFilename, err.Error()) + + continue + } + done := make(map[string]bool) ind := imp.index res := ind.MediaFile(related.main, opt)