mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
Fixed: Add form param before submitting request
Co-Authored-By: taloth <taloth@users.noreply.github.com>
This commit is contained in:
parent
8423b6d488
commit
22eb5cfc66
1 changed files with 2 additions and 2 deletions
|
@ -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.MusicCategory.IsNotNullOrWhiteSpace())
|
if (settings.MusicCategory.IsNotNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
request.AddFormParameter("category", settings.MusicCategory);
|
request.AddFormParameter("category", settings.MusicCategory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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.")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue