Indexer: Observe Convert option flag
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
1ccb546893
commit
a6ab94fb2e
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue