mirror of https://github.com/Xhofe/alist
fix: allow_indexed check (close #3291)
parent
44cb8aaafe
commit
a985b748e9
|
@ -52,10 +52,12 @@ func updateIgnorePaths() {
|
||||||
url := addition.Address + "/api/public/settings"
|
url := addition.Address + "/api/public/settings"
|
||||||
res, err := base.RestyClient.R().Get(url)
|
res, err := base.RestyClient.R().Get(url)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
allowIndexed = utils.Json.Get(res.Body(), "data", conf.AllowIndexed).ToBool()
|
log.Debugf("allow_indexed body: %+v", res.String())
|
||||||
|
allowIndexed = utils.Json.Get(res.Body(), "data", conf.AllowIndexed).ToString() == "true"
|
||||||
v3Visited[addition.Address] = allowIndexed
|
v3Visited[addition.Address] = allowIndexed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
log.Debugf("%s allow_indexed: %v", addition.Address, allowIndexed)
|
||||||
if !allowIndexed {
|
if !allowIndexed {
|
||||||
ignorePaths = append(ignorePaths, storage.GetStorage().MountPath)
|
ignorePaths = append(ignorePaths, storage.GetStorage().MountPath)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue