Get convert option for index command from settings
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
a5a2da36f1
commit
305ec3e822
1 changed files with 1 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue