From 802768bd24dba6843a80465875877669bf7c6c7b Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 26 Mar 2018 06:03:12 -0400 Subject: [PATCH] Fixed: Add form param before submitting request (#2674) 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 46db150ac..a6d75ff81 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.MovieCategory.IsNotNullOrWhiteSpace()) { request.AddFormParameter("category", settings.MovieCategory); } + var result = ProcessRequest(request, settings); + // Note: Current qbit versions return nothing, so we can't do != "Ok." here. if (result == "Fails.") {