Backend: Fix indexing after import of non-JPEG files #196

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-01-15 05:05:47 +01:00
parent fc3a83e5cd
commit 624ade62c6

View file

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