From 80b698a74923ac011ae7f219f829fdaa6d098bf0 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 22 Mar 2018 18:56:47 -0400 Subject: [PATCH] Fixed: Don't add category when removing torrent from qBittorrent (#2661) Fixes #2655 --- .../Download/Clients/QBittorrent/QBittorrentProxy.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs index 2fcbaa4c0..46db150ac 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs @@ -97,6 +97,11 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent var result = ProcessRequest(request, settings); + if (settings.MovieCategory.IsNotNullOrWhiteSpace()) + { + request.AddFormParameter("category", settings.MovieCategory); + } + // Note: Current qbit versions return nothing, so we can't do != "Ok." here. if (result == "Fails.") { @@ -109,11 +114,6 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent var request = BuildRequest(settings).Resource(removeData ? "/command/deletePerm" : "/command/delete") .Post() .AddFormParameter("hashes", hash); - - if (settings.MovieCategory.IsNotNullOrWhiteSpace()) - { - request.AddFormParameter("category", settings.MovieCategory); - } ProcessRequest(request, settings); }