From 43c6e07bacc711ecf500b9270c48d7d431aefcdf Mon Sep 17 00:00:00 2001 From: Windman Date: Thu, 28 Apr 2022 18:05:07 +0800 Subject: [PATCH] feat: add aria2 download settings(#1000) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add aria2 support 在右键菜单中增加了使用aria2下载的item,可以直接发送选中的文件链接到aria2,省略复制再粘贴到aria2的步骤 * feat: set default value for `Aria2 RPC url` Co-authored-by: Xhofe --- bootstrap/setting.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/bootstrap/setting.go b/bootstrap/setting.go index 3c7c898b..6591a774 100644 --- a/bootstrap/setting.go +++ b/bootstrap/setting.go @@ -266,6 +266,22 @@ func InitSettings() { Group: model.BACK, 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 { v := settings[i]