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