mirror of https://github.com/Xhofe/alist
feat: add aria2 download settings(#1000)
* feat: add aria2 support 在右键菜单中增加了使用aria2下载的item,可以直接发送选中的文件链接到aria2,省略复制再粘贴到aria2的步骤 * feat: set default value for `Aria2 RPC url` Co-authored-by: Xhofe <i@nn.ci>pull/1011/head
parent
4901e9080c
commit
43c6e07bac
|
@ -266,6 +266,22 @@ func InitSettings() {
|
||||||
Group: model.BACK,
|
Group: model.BACK,
|
||||||
Description: "Experimental function, not recommended as it's still under development",
|
Description: "Experimental function, not recommended as it's still under development",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Key: "Aria2 RPC url",
|
||||||
|
Value: "http://localhost:6800/jsonrpc",
|
||||||
|
Description: "Aria2 RPC url, e.g. 'http://aria2.example.com:6800/jsonrpc'",
|
||||||
|
Type: "string",
|
||||||
|
Access: model.PRIVATE,
|
||||||
|
Group: model.BACK,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Key: "Aria2 RPC secret",
|
||||||
|
Value: "",
|
||||||
|
Description: "Aria2 RPC secret, e.g. '123456'",
|
||||||
|
Type: "string",
|
||||||
|
Access: model.PRIVATE,
|
||||||
|
Group: model.BACK,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
for i, _ := range settings {
|
for i, _ := range settings {
|
||||||
v := settings[i]
|
v := settings[i]
|
||||||
|
|
Loading…
Reference in New Issue