1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-18 21:35:51 -04:00

Fixed: Don't add category when removing torrent from qBittorrent

Fixes #2438
This commit is contained in:
Mark McDowall
2018-03-02 06:32:24 -08:00
parent 99ee59e9cc
commit ac379e3b84

View File

@@ -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);
}