From 305ec3e822f226347aff736d952e3094681aba2f Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Fri, 8 May 2020 08:09:43 +0200 Subject: [PATCH] Get convert option for index command from settings Signed-off-by: Michael Mayer --- internal/commands/index.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/internal/commands/index.go b/internal/commands/index.go index 7ff5a3fb8..58bdc5659 100644 --- a/internal/commands/index.go +++ b/internal/commands/index.go @@ -26,10 +26,6 @@ var indexFlags = []cli.Flag{ Name: "all, a", Usage: "re-index all originals, including unchanged files", }, - cli.BoolFlag{ - Name: "convert, c", - Usage: "convert other file types to jpeg so that they can be displayed in a browser", - }, } // indexAction indexes all photos in originals directory (photo library) @@ -69,7 +65,7 @@ func indexAction(ctx *cli.Context) error { indOpt := photoprism.IndexOptions{ Path: subPath, Rescan: ctx.Bool("all"), - Convert: ctx.Bool("convert"), + Convert: conf.Settings().Index.Convert && !conf.ReadOnly(), } indexed := ind.Start(indOpt)