Fixed: Don't add category when removing torrent from qBittorrent (#2661)

Fixes #2655
Qstick 7 years ago committed by Leonardo Galli
parent 9db7bd09e1
commit 80b698a749

@ -97,6 +97,11 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
var result = ProcessRequest(request, settings);
if (settings.MovieCategory.IsNotNullOrWhiteSpace())
{
request.AddFormParameter("category", settings.MovieCategory);
}
// 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.MovieCategory.IsNotNullOrWhiteSpace())
{
request.AddFormParameter("category", settings.MovieCategory);
}
ProcessRequest(request, settings);
}

Loading…
Cancel
Save