mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-02-08 17:06:38 +00:00
Fixed: Don't add category when removing torrent from qBittorrent
This commit is contained in:
@@ -97,6 +97,11 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
|
||||
|
||||
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.
|
||||
if (result == "Fails.")
|
||||
{
|
||||
@@ -110,11 +115,6 @@ namespace NzbDrone.Core.Download.Clients.QBittorrent
|
||||
.Post()
|
||||
.AddFormParameter("hashes", hash);
|
||||
|
||||
if (settings.MusicCategory.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
request.AddFormParameter("category", settings.MusicCategory);
|
||||
}
|
||||
|
||||
ProcessRequest(request, settings);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user