mirror of
https://github.com/Radarr/Radarr
synced 2026-02-11 17:22:07 +01:00
Fixed: Set category when adding torrent to qBittorrent (#2649)
Hopefully fixes: #2200
This commit is contained in:
parent
25e10e26e3
commit
2088f5e92d
1 changed files with 10 additions and 0 deletions
|
|
@ -75,6 +75,11 @@ public void AddTorrentFromUrl(string torrentUrl, QBittorrentSettings settings)
|
|||
.Post()
|
||||
.AddFormParameter("urls", torrentUrl);
|
||||
|
||||
if (settings.MovieCategory.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
request.AddFormParameter("category", settings.MovieCategory);
|
||||
}
|
||||
|
||||
var result = ProcessRequest(request, settings);
|
||||
|
||||
// Note: Older qbit versions returned nothing, so we can't do != "Ok." here.
|
||||
|
|
@ -105,6 +110,11 @@ public void RemoveTorrent(string hash, Boolean removeData, QBittorrentSettings s
|
|||
.Post()
|
||||
.AddFormParameter("hashes", hash);
|
||||
|
||||
if (settings.MovieCategory.IsNotNullOrWhiteSpace())
|
||||
{
|
||||
request.AddFormParameter("category", settings.MovieCategory);
|
||||
}
|
||||
|
||||
ProcessRequest(request, settings);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue