mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-17 15:02:34 +02:00
Fixed: Filter qbittorrent torrent list on newer versions.
fixes #1470 ref #1347
This commit is contained in:
parent
cd79b42f5f
commit
edc1e0b8d1
@ -58,7 +58,8 @@ public Dictionary<string, object> GetConfig(QBittorrentSettings settings)
|
|||||||
public List<QBittorrentTorrent> GetTorrents(QBittorrentSettings settings)
|
public List<QBittorrentTorrent> GetTorrents(QBittorrentSettings settings)
|
||||||
{
|
{
|
||||||
var request = BuildRequest(settings).Resource("/query/torrents")
|
var request = BuildRequest(settings).Resource("/query/torrents")
|
||||||
.AddQueryParam("label", settings.TvCategory);
|
.AddQueryParam("label", settings.TvCategory)
|
||||||
|
.AddQueryParam("category", settings.TvCategory);
|
||||||
|
|
||||||
var response = ProcessRequest<List<QBittorrentTorrent>>(request, settings);
|
var response = ProcessRequest<List<QBittorrentTorrent>>(request, settings);
|
||||||
|
|
||||||
@ -99,7 +100,7 @@ public void SetTorrentLabel(string hash, string label, QBittorrentSettings setti
|
|||||||
.AddFormParameter("hashes", hash)
|
.AddFormParameter("hashes", hash)
|
||||||
.AddFormParameter("category", label);
|
.AddFormParameter("category", label);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
ProcessRequest<object>(setCategoryRequest, settings);
|
ProcessRequest<object>(setCategoryRequest, settings);
|
||||||
}
|
}
|
||||||
catch(DownloadClientException ex)
|
catch(DownloadClientException ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user