Fixed: Add form param before submitting request

Co-Authored-By: taloth <taloth@users.noreply.github.com>
pull/6/head
Qstick 7 years ago
parent 8423b6d488
commit 22eb5cfc66

@ -95,13 +95,13 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
.Post()
.AddFormUpload("torrents", fileName, fileContent);
var result = ProcessRequest(request, settings);
if (settings.MusicCategory.IsNotNullOrWhiteSpace())
{
request.AddFormParameter("category", settings.MusicCategory);
}
var result = ProcessRequest(request, settings);
// Note: Current qbit versions return nothing, so we can't do != "Ok." here.
if (result == "Fails.")
{

Loading…
Cancel
Save