From 53f985d80dfa0801e91693fc40d45d320561dbd5 Mon Sep 17 00:00:00 2001 From: Roger Far Date: Sun, 15 Mar 2026 12:18:38 -0600 Subject: [PATCH] v2.0.127 --- CHANGELOG.md | 4 ++++ server/RdtClient.Web/Controllers/QBittorrentController.cs | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 448719e..b15a803 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased +## [2.0.127] - 2026-03-15 +### Added +- Implement qBittorrent endpoint for counting torrents, thanks to @vinodmishra! + ## [2.0.126] - 2026-03-14 ### Added - qBittorrent hash filtering on the /torrrents/info endpoint, thanks to @jfrconley! diff --git a/server/RdtClient.Web/Controllers/QBittorrentController.cs b/server/RdtClient.Web/Controllers/QBittorrentController.cs index d2a9f64..37a4b7a 100644 --- a/server/RdtClient.Web/Controllers/QBittorrentController.cs +++ b/server/RdtClient.Web/Controllers/QBittorrentController.cs @@ -192,7 +192,7 @@ public class QBittorrentController(ILogger logger, QBitto [Route("torrents/count")] [HttpGet] [HttpPost] - public async Task> TorrentsCount([FromQuery] QBTorrentsCountRequest request) + public async Task> TorrentsCount([FromQuery] QBTorrentsCountRequest request) { var results = await qBittorrent.TorrentInfo(); @@ -206,7 +206,7 @@ public class QBittorrentController(ILogger logger, QBitto [Authorize(Policy = "AuthSetting")] [Route("torrents/count")] [HttpPost] - public async Task> TorrentsCountPost([FromForm] QBTorrentsCountRequest request) + public async Task> TorrentsCountPost([FromForm] QBTorrentsCountRequest request) { return await TorrentsCount(request); }