mirror of
https://github.com/lanyeeee/bilibili-video-downloader.git
synced 2026-08-28 19:47:24 +08:00
fix: 修复搜索up稿件时偶发的412错误问题
This commit is contained in:
@@ -351,7 +351,8 @@ impl BiliClient {
|
||||
.read()
|
||||
.get("https://api.bilibili.com/x/space/wbi/arc/search")
|
||||
.query(¶ms)
|
||||
.header("cookie", self.get_cookie());
|
||||
// 不带DedeUserID会随机触发412错误
|
||||
.header("cookie", format!("DedeUserID=1; {}", self.get_cookie()));
|
||||
let http_resp = request.send().await?;
|
||||
// 检查http响应状态码
|
||||
let status = http_resp.status();
|
||||
|
||||
Reference in New Issue
Block a user