Add form param before submitting request.

pull/2509/head
Taloth Saldono 7 years ago
parent 58e939beda
commit 700751715b

@ -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.")
{

Loading…
Cancel
Save