fix qbittorrent delete

This commit is contained in:
royalcat 2024-11-15 16:35:01 +03:00
parent ff38d10fbf
commit b069b3ad1c

View file

@ -577,7 +577,7 @@ func (c *client) DeleteTorrents(ctx context.Context, hashes []string, deleteFile
var formData = url.Values{}
formData.Add("hashes", strings.Join(hashes, "|"))
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{
url: apiUrl,
method: http.MethodPost,