mirror of
https://github.com/AlistGo/alist.git
synced 2025-04-22 21:04:07 +08:00
fix: allow_indexed check (close #3291)
This commit is contained in:
parent
44cb8aaafe
commit
a985b748e9
@ -52,10 +52,12 @@ func updateIgnorePaths() {
|
||||
url := addition.Address + "/api/public/settings"
|
||||
res, err := base.RestyClient.R().Get(url)
|
||||
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
|
||||
}
|
||||
}
|
||||
log.Debugf("%s allow_indexed: %v", addition.Address, allowIndexed)
|
||||
if !allowIndexed {
|
||||
ignorePaths = append(ignorePaths, storage.GetStorage().MountPath)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user