mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 12:02:35 +02:00
Fixed: Don't add category when removing torrent from qBittorrent (#2661)
Fixes #2655
This commit is contained in:
parent
9db7bd09e1
commit
80b698a749
@ -97,6 +97,11 @@ public void AddTorrentFromFile(string fileName, Byte[] fileContent, QBittorrentS
|
||||
|
||||
var result = ProcessRequest(request, settings);
|
||||
|
||||
if (settings.MovieCategory.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
request.AddFormParameter("category", settings.MovieCategory);
|
||||
}
|
||||
|
||||
// Note: Current qbit versions return nothing, so we can't do != "Ok." here.
|
||||
if (result == "Fails.")
|
||||
{
|
||||
@ -109,11 +114,6 @@ public void RemoveTorrent(string hash, Boolean removeData, QBittorrentSettings s
|
||||
var request = BuildRequest(settings).Resource(removeData ? "/command/deletePerm" : "/command/delete")
|
||||
.Post()
|
||||
.AddFormParameter("hashes", hash);
|
||||
|
||||
if (settings.MovieCategory.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
request.AddFormParameter("category", settings.MovieCategory);
|
||||
}
|
||||
|
||||
ProcessRequest(request, settings);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user