1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

Fixed: Add form param before submitting request (#2674)

Co-Authored-By: taloth <taloth@users.noreply.github.com>
This commit is contained in:
Qstick 2018-03-26 06:03:12 -04:00 committed by Leonardo Galli
parent 8ee71fd0fa
commit 802768bd24

View File

@ -95,13 +95,13 @@ public void AddTorrentFromFile(string fileName, Byte[] fileContent, QBittorrentS
.Post()
.AddFormUpload("torrents", fileName, fileContent);
var result = ProcessRequest(request, settings);
if (settings.MovieCategory.IsNotNullOrWhiteSpace())
{
request.AddFormParameter("category", settings.MovieCategory);
}
var result = ProcessRequest(request, settings);
// Note: Current qbit versions return nothing, so we can't do != "Ok." here.
if (result == "Fails.")
{