From 700751715b889c13181deb878466c83c857a5fa6 Mon Sep 17 00:00:00 2001 From: Taloth Saldono Date: Sat, 24 Mar 2018 11:37:19 +0100 Subject: [PATCH] Add form param before submitting request. --- .../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 8b1593220..0b8fc32e5 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.TvCategory.IsNotNullOrWhiteSpace()) { request.AddFormParameter("category", settings.TvCategory); } + var result = ProcessRequest(request, settings); + // Note: Current qbit versions return nothing, so we can't do != "Ok." here. if (result == "Fails.") {