fix qbittorrent delete
This commit is contained in:
parent
ff38d10fbf
commit
b069b3ad1c
1 changed files with 1 additions and 1 deletions
|
@ -577,7 +577,7 @@ func (c *client) DeleteTorrents(ctx context.Context, hashes []string, deleteFile
|
||||||
var formData = url.Values{}
|
var formData = url.Values{}
|
||||||
formData.Add("hashes", strings.Join(hashes, "|"))
|
formData.Add("hashes", strings.Join(hashes, "|"))
|
||||||
formData.Add("deleteFile", strconv.FormatBool(deleteFile))
|
formData.Add("deleteFile", strconv.FormatBool(deleteFile))
|
||||||
var apiUrl = fmt.Sprintf("%s/api/v2/torrents/resume", c.config.Address)
|
var apiUrl = fmt.Sprintf("%s/api/v2/torrents/delete", c.config.Address)
|
||||||
result, err := c.doRequest(ctx, &requestData{
|
result, err := c.doRequest(ctx, &requestData{
|
||||||
url: apiUrl,
|
url: apiUrl,
|
||||||
method: http.MethodPost,
|
method: http.MethodPost,
|
||||||
|
|
Loading…
Reference in a new issue