From 22eb5cfc668d166c450d7d60b144b80d268174d0 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 25 Mar 2018 21:37:34 -0400 Subject: [PATCH] Fixed: Add form param before submitting request Co-Authored-By: taloth --- .../Download/Clients/QBittorrent/QBittorrentProxy.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs index bbdfb9bf0..789b1a420 100644 --- a/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs +++ b/src/NzbDrone.Core/Download/Clients/QBittorrent/QBittorrentProxy.cs @@ -95,13 +95,13 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent .Post() .AddFormUpload("torrents", fileName, fileContent); - var result = ProcessRequest(request, settings); - if (settings.MusicCategory.IsNotNullOrWhiteSpace()) { request.AddFormParameter("category", settings.MusicCategory); } + var result = ProcessRequest(request, settings); + // Note: Current qbit versions return nothing, so we can't do != "Ok." here. if (result == "Fails.") {