From b069b3ad1cec69172053b6f1d7751585bbe398f5 Mon Sep 17 00:00:00 2001 From: royalcat Date: Fri, 15 Nov 2024 16:35:01 +0300 Subject: [PATCH] fix qbittorrent delete --- pkg/qbittorrent/torrent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/qbittorrent/torrent.go b/pkg/qbittorrent/torrent.go index f7c62c2..1d2ff89 100644 --- a/pkg/qbittorrent/torrent.go +++ b/pkg/qbittorrent/torrent.go @@ -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,