mirror of https://github.com/Xhofe/alist
fix(baidu): duplicate prefix of crack link request
parent
900e71f78f
commit
868a4fd49e
|
@ -156,7 +156,9 @@ func (d *BaiduNetdisk) linkCrack(file model.Obj, args model.LinkArgs) (*model.Li
|
||||||
"web": "5",
|
"web": "5",
|
||||||
"origin": "dlna",
|
"origin": "dlna",
|
||||||
}
|
}
|
||||||
_, err := d.get("https://pan.baidu.com/api/filemetas", param, &resp)
|
_, err := d.request("https://pan.baidu.com/api/filemetas", http.MethodGet, func(req *resty.Request) {
|
||||||
|
req.SetQueryParams(param)
|
||||||
|
}, &resp)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue