Backend: Fix indexing after import of non-JPEG files #196
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
fc3a83e5cd
commit
624ade62c6
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
done := make(map[string]bool)
|
||||||
ind := imp.index
|
ind := imp.index
|
||||||
res := ind.MediaFile(related.main, opt)
|
res := ind.MediaFile(related.main, opt)
|
||||||
|
|
Loading…
Reference in a new issue