Skip to content

Commit

Permalink
fix(baidu): duplicate prefix of crack link request
Browse files Browse the repository at this point in the history
  • Loading branch information
xhofe committed Sep 5, 2022
1 parent 900e71f commit 868a4fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/baidu_netdisk/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ func (d *BaiduNetdisk) linkCrack(file model.Obj, args model.LinkArgs) (*model.Li
"web": "5",
"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 {
return nil, err
}
Expand Down

0 comments on commit 868a4fd

Please sign in to comment.