diff --git a/drivers/baidu_share2/driver.go b/drivers/baidu_share2/driver.go index 4a7c8742..badd2c22 100644 --- a/drivers/baidu_share2/driver.go +++ b/drivers/baidu_share2/driver.go @@ -172,6 +172,7 @@ func (d *BaiduShare2) List(ctx context.Context, dir model.Obj, args model.ListAr "shorturl": d.Surl[1:], "page": fmt.Sprint(page), } + log.Debugf("Baidu Share List: %v", page) res, e := d.client.R(). SetCookie(&http.Cookie{Name: "BDCLND", Value: d.Token}). SetResult(&respJson). @@ -195,6 +196,9 @@ func (d *BaiduShare2) List(ctx context.Context, dir model.Obj, args model.ListAr IsFolder: v.Isdir.String() == "1", }) } + if len(respJson.List) >= 100 { + more = true + } } else { err = fmt.Errorf("%s", res.Body()) }