Skip to content

Commit 43c6e07

Browse files
Windman1320xhofe
andauthored
feat: add aria2 download settings(AlistGo#1000)
* feat: add aria2 support 在右键菜单中增加了使用aria2下载的item,可以直接发送选中的文件链接到aria2,省略复制再粘贴到aria2的步骤 * feat: set default value for `Aria2 RPC url` Co-authored-by: Xhofe <i@nn.ci>
1 parent 4901e90 commit 43c6e07

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

bootstrap/setting.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,22 @@ func InitSettings() {
266266
Group: model.BACK,
267267
Description: "Experimental function, not recommended as it's still under development",
268268
},
269+
{
270+
Key: "Aria2 RPC url",
271+
Value: "http://localhost:6800/jsonrpc",
272+
Description: "Aria2 RPC url, e.g. 'http://aria2.example.com:6800/jsonrpc'",
273+
Type: "string",
274+
Access: model.PRIVATE,
275+
Group: model.BACK,
276+
},
277+
{
278+
Key: "Aria2 RPC secret",
279+
Value: "",
280+
Description: "Aria2 RPC secret, e.g. '123456'",
281+
Type: "string",
282+
Access: model.PRIVATE,
283+
Group: model.BACK,
284+
},
269285
}
270286
for i, _ := range settings {
271287
v := settings[i]

0 commit comments

Comments
 (0)