From ac379e3b84a68b5a895bcaeb24056be4c8918887 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 2 Mar 2018 06:32:24 -0800 Subject: [PATCH] Fixed: Don't add category when removing torrent from qBittorrent Fixes #2438 --- .../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 0470cce08..8b1593220 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.TvCategory.IsNotNullOrWhiteSpace()) + { + request.AddFormParameter("category", settings.TvCategory); + } + // Note: Current qbit versions return nothing, so we can't do != "Ok." here. if (result == "Fails.") { @@ -110,11 +115,6 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent .Post() .AddFormParameter("hashes", hash); - if (settings.TvCategory.IsNotNullOrWhiteSpace()) - { - request.AddFormParameter("category", settings.TvCategory); - } - ProcessRequest(request, settings); }