Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
a91206a509
commit
aeb889aeff
2 changed files with 2 additions and 2 deletions
|
@ -38,7 +38,7 @@ func StartIndexing(router *gin.RouterGroup, conf *config.Config) {
|
|||
|
||||
indOpt := photoprism.IndexOptions{
|
||||
Rescan: f.Rescan,
|
||||
Convert: f.Convert && !conf.ReadOnly(),
|
||||
Convert: f.Convert && (!conf.ReadOnly() || filepath.IsAbs(conf.SidecarPath())),
|
||||
Path: filepath.Clean(f.Path),
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ func indexAction(ctx *cli.Context) error {
|
|||
indOpt := photoprism.IndexOptions{
|
||||
Path: subPath,
|
||||
Rescan: ctx.Bool("all"),
|
||||
Convert: conf.Settings().Index.Convert && !conf.ReadOnly(),
|
||||
Convert: conf.Settings().Index.Convert && (!conf.ReadOnly() || filepath.IsAbs(conf.SidecarPath())),
|
||||
}
|
||||
|
||||
indexed := ind.Start(indOpt)
|
||||
|
|
Loading…
Reference in a new issue