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); }