mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
Add form param before submitting request.
This commit is contained in:
parent
58e939beda
commit
700751715b
@ -95,13 +95,13 @@ public void AddTorrentFromFile(string fileName, Byte[] fileContent, QBittorrentS
|
|||||||
.Post()
|
.Post()
|
||||||
.AddFormUpload("torrents", fileName, fileContent);
|
.AddFormUpload("torrents", fileName, fileContent);
|
||||||
|
|
||||||
var result = ProcessRequest(request, settings);
|
|
||||||
|
|
||||||
if (settings.TvCategory.IsNotNullOrWhiteSpace())
|
if (settings.TvCategory.IsNotNullOrWhiteSpace())
|
||||||
{
|
{
|
||||||
request.AddFormParameter("category", settings.TvCategory);
|
request.AddFormParameter("category", settings.TvCategory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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…
Reference in New Issue
Block a user