|
|
@ -75,6 +75,11 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
|
|
|
|
.Post()
|
|
|
|
.Post()
|
|
|
|
.AddFormParameter("urls", torrentUrl);
|
|
|
|
.AddFormParameter("urls", torrentUrl);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (settings.MovieCategory.IsNotNullOrWhiteSpace())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
request.AddFormParameter("category", settings.MovieCategory);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var result = ProcessRequest(request, settings);
|
|
|
|
var result = ProcessRequest(request, settings);
|
|
|
|
|
|
|
|
|
|
|
|
// Note: Older qbit versions returned nothing, so we can't do != "Ok." here.
|
|
|
|
// Note: Older qbit versions returned nothing, so we can't do != "Ok." here.
|
|
|
@ -105,6 +110,11 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
|
|
|
|
.Post()
|
|
|
|
.Post()
|
|
|
|
.AddFormParameter("hashes", hash);
|
|
|
|
.AddFormParameter("hashes", hash);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (settings.MovieCategory.IsNotNullOrWhiteSpace())
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
request.AddFormParameter("category", settings.MovieCategory);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ProcessRequest(request, settings);
|
|
|
|
ProcessRequest(request, settings);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|