From 7c2a230f87302ced0ff8cb268e64b08a5443fcce Mon Sep 17 00:00:00 2001 From: Qstick Date: Wed, 14 Mar 2018 21:33:05 -0400 Subject: [PATCH] Fixed: Don't add category when removing torrent from qBittorrent --- .../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 70008559f..bbdfb9bf0 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.MusicCategory.IsNotNullOrWhiteSpace()) + { + request.AddFormParameter("category", settings.MusicCategory); + } + // 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.MusicCategory.IsNotNullOrWhiteSpace()) - { - request.AddFormParameter("category", settings.MusicCategory); - } - ProcessRequest(request, settings); }