mirror of
https://github.com/Readarr/Readarr
synced 2026-05-09 05:21:41 +02:00
Fixed: Don't add category when removing torrent from qBittorrent
This commit is contained in:
parent
929ad78db3
commit
7c2a230f87
1 changed files with 5 additions and 5 deletions
|
|
@ -97,6 +97,11 @@ public void AddTorrentFromFile(string fileName, Byte[] fileContent, QBittorrentS
|
||||||
|
|
||||||
var result = ProcessRequest(request, settings);
|
var result = ProcessRequest(request, settings);
|
||||||
|
|
||||||
|
if (settings.MusicCategory.IsNotNullOrWhiteSpace())
|
||||||
|
{
|
||||||
|
request.AddFormParameter("category", settings.MusicCategory);
|
||||||
|
}
|
||||||
|
|
||||||
// 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.")
|
||||||
{
|
{
|
||||||
|
|
@ -110,11 +115,6 @@ public void RemoveTorrent(string hash, Boolean removeData, QBittorrentSettings s
|
||||||
.Post()
|
.Post()
|
||||||
.AddFormParameter("hashes", hash);
|
.AddFormParameter("hashes", hash);
|
||||||
|
|
||||||
if (settings.MusicCategory.IsNotNullOrWhiteSpace())
|
|
||||||
{
|
|
||||||
request.AddFormParameter("category", settings.MusicCategory);
|
|
||||||
}
|
|
||||||
|
|
||||||
ProcessRequest(request, settings);
|
ProcessRequest(request, settings);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue