Test: aria2 related

This commit is contained in:
HFO4
2020-02-06 13:53:47 +08:00
parent 60cd8c3a89
commit 2b853dddd3
7 changed files with 471 additions and 9 deletions

View File

@@ -72,8 +72,7 @@ func (client *RPCService) Select(task *model.Download, files []int) error {
for i := 0; i < len(files); i++ {
selected[i] = strconv.Itoa(files[i])
}
ok, err := client.caller.ChangeOption(task.GID, map[string]interface{}{"select-file": strings.Join(selected, ",")})
util.Log().Debug(ok)
_, err := client.caller.ChangeOption(task.GID, map[string]interface{}{"select-file": strings.Join(selected, ",")})
return err
}