Skip to content

Commit 2c59243

Browse files
authored
1 parent b2c02b5 commit 2c59243

File tree

2 files changed

+41
-10
lines changed

2 files changed

+41
-10
lines changed

docs/guide/drivers/baidu.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ curl -L -X GET 'YOUR_LINK' -H 'User-Agent: pan.baidu.com'
2727
Or use the proxy function in this program to transfer.
2828
:::
2929

30-
### **Refresh token**
30+
## **Refresh token**
3131
[Click here](https://openapi.baidu.com/oauth/2.0/authorize?response_type=code&client_id=iYCeC9g08h5vuP9UqvPHKKSVrKFXGa1v&redirect_uri=https://alist.nn.ci/tool/baidu/callback&scope=basic,netdisk&qrcode=1) to get the refresh token.
3232

3333

3434

35-
### **Root folder path**
35+
## **Root folder path**
3636
The root foler to mount, defaults to `/`
3737

3838
- Mount a folder separately, according to the following format, `/` is the root directory, just extend to that directory if you want to mount that directory
@@ -42,15 +42,16 @@ The root foler to mount, defaults to `/`
4242

4343

4444

45-
### **Custom crack ua**
45+
## **Custom crack ua**
4646

4747
[**UA used when using 【Native Proxy & Crack API】**](https://github.com/alist-org/alist/issues/5602#issuecomment-1831188682)
4848

4949
<br/>
5050

5151

5252

53-
### **Download api**
53+
## **Download api**
54+
5455
- official: The official interface, very stable, but for larger files, UA needs to be modified and the speed is slow (SVIP speed fast)
5556
- crack: unofficial interface,You must modify the UA and some files may not have a speed limit, but it will be unstable (not guaranteed 100%availability) Need to use a version greater than `3.19.0`
5657
- ==Need to change the UA to`netdisk`==,Modification method refer to [add-user-agent-user-example](#add-user-agent-usage-example)
@@ -64,14 +65,13 @@ The root foler to mount, defaults to `/`
6465
error_msg: "hit black userlist , hit illeage dlna",
6566
request_id: 541111111111111140
6667
}
67-
# This is not a mistake, this is a limit, please do not panic.
6868
```
6969

7070
<br/>
7171

7272

7373

74-
### **Add "User-Agent" usage example**
74+
## **Add "User-Agent" usage example**
7575

7676
::::danger If you don't know how to set "User-Agent" see here
7777

@@ -134,7 +134,23 @@ If you use the webpage to modify the **`user-agent`**, you do not need to config
134134

135135
::::
136136

137-
### **The default download method used**
137+
## **Upload Config**
138+
139+
Official Documentation: [百度网盘开放平台 - 上传 - 能力说明](https://pan.baidu.com/union/doc/3ksg0s9ye)
140+
141+
> Baidu Netdisk requires that each slice be uploaded within 30 seconds, so excessively high concurrency during file uploads may result in a significant number of failures.
142+
143+
- Upload Threads: The number of slices to upload concurrently.
144+
- Upload API: The domain endpoint used for uploading.
145+
- Custom Upload Slice Size: Allows you to specify the size of each slice. Note that there are limitations, and this feature is available to VIPs only.
146+
- Low Bandwidth Upload Mode: Attempts to address the frequent `Client.Timeout exceeded while awaiting headers` errors encountered in low upload bandwidth scenarios (e.g., residential broadband). When enabled, it uses the smallest possible slice size.
147+
148+
149+
<br/>
150+
151+
152+
153+
## **The default download method used**
138154

139155
```mermaid
140156
---

docs/zh/guide/drivers/baidu.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ flowchart TB
117117

118118

119119

120-
## **Download API**
120+
## **下载接口**
121121

122122
- official: 官方接口,很稳定,但是文件比较大,需要修改UA,速度慢 (SVIP速度快)
123123
- crack: 非官方接口,现在也需要修改UA且部分文件可能不限速,但是会不稳定(不保证100%可用性)需要使用大于`3.19.0`的版本
@@ -139,7 +139,7 @@ flowchart TB
139139

140140

141141

142-
## **添加 "User-Agent" 使用示例**
142+
### **添加 "User-Agent" 使用示例**
143143

144144
::::danger 如果你不会设置 "User-Agent" 请看这里
145145

@@ -207,7 +207,22 @@ flowchart TB
207207

208208
::::
209209

210-
### **默认使用的下载方式**
210+
## **上传配置**
211+
212+
官方文档:[百度网盘开放平台 - 上传 - 能力说明](https://pan.baidu.com/union/doc/3ksg0s9ye)
213+
214+
> 百度网盘要求在 30s 内完成单个分片的上传,所以上传文件时并发过高可能会导致大量失败。
215+
216+
- 上传线程:同时上传几个分片
217+
- 上传 API:上传的域名端点
218+
- 自定义上传分片大小:用于指定分片大小,有限制,仅会员可用
219+
- 低上传带宽模式:尝试解决低上传带宽场景(如家宽)下,频繁出现 `Client.Timeout exceeded while awaiting headers` 的问题。开启后会使用尽可能小的分片大小。
220+
221+
<br/>
222+
223+
224+
225+
## **默认使用的下载方式**
211226

212227
```mermaid
213228
---

0 commit comments

Comments
 (0)