Indexer: Observe Convert option flag

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-05-07 08:29:41 +02:00
parent 1ccb546893
commit a6ab94fb2e

View file

@ -22,7 +22,7 @@ func IndexWorker(jobs <-chan IndexJob) {
if related.Main != nil {
f := related.Main
if !ind.conf.ReadOnly() && !f.HasJpeg() {
if opt.Convert && !f.HasJpeg() {
if converted, err := ind.convert.ToJpeg(f); err != nil {
log.Errorf("index: creating jpeg failed (%s)", err.Error())
} else {