Fixed some qBittorrent endpoints.
This commit is contained in:
parent
53f985d80d
commit
9cd112a05c
2 changed files with 4 additions and 3 deletions
|
|
@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
|
|
||||||
## [Unreleased
|
## [Unreleased
|
||||||
|
|
||||||
|
## [2.0.128] - 2026-04-06
|
||||||
|
### Changed
|
||||||
|
- Fixed some qBittorrent endpoints.
|
||||||
|
|
||||||
## [2.0.127] - 2026-03-15
|
## [2.0.127] - 2026-03-15
|
||||||
### Added
|
### Added
|
||||||
- Implement qBittorrent endpoint for counting torrents, thanks to @vinodmishra!
|
- Implement qBittorrent endpoint for counting torrents, thanks to @vinodmishra!
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,6 @@ public class QBittorrentController(ILogger<QBittorrentController> logger, QBitto
|
||||||
[Authorize(Policy = "AuthSetting")]
|
[Authorize(Policy = "AuthSetting")]
|
||||||
[Route("torrents/info")]
|
[Route("torrents/info")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[HttpPost]
|
|
||||||
public async Task<ActionResult<IList<TorrentInfo>>> TorrentsInfo([FromQuery] QBTorrentsInfoRequest request)
|
public async Task<ActionResult<IList<TorrentInfo>>> TorrentsInfo([FromQuery] QBTorrentsInfoRequest request)
|
||||||
{
|
{
|
||||||
var results = await qBittorrent.TorrentInfo();
|
var results = await qBittorrent.TorrentInfo();
|
||||||
|
|
@ -191,7 +190,6 @@ public class QBittorrentController(ILogger<QBittorrentController> logger, QBitto
|
||||||
[Authorize(Policy = "AuthSetting")]
|
[Authorize(Policy = "AuthSetting")]
|
||||||
[Route("torrents/count")]
|
[Route("torrents/count")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[HttpPost]
|
|
||||||
public async Task<ActionResult<Int32>> TorrentsCount([FromQuery] QBTorrentsCountRequest request)
|
public async Task<ActionResult<Int32>> TorrentsCount([FromQuery] QBTorrentsCountRequest request)
|
||||||
{
|
{
|
||||||
var results = await qBittorrent.TorrentInfo();
|
var results = await qBittorrent.TorrentInfo();
|
||||||
|
|
@ -609,7 +607,6 @@ public class QBittorrentController(ILogger<QBittorrentController> logger, QBitto
|
||||||
[Authorize(Policy = "AuthSetting")]
|
[Authorize(Policy = "AuthSetting")]
|
||||||
[Route("torrents/trackers")]
|
[Route("torrents/trackers")]
|
||||||
[HttpGet]
|
[HttpGet]
|
||||||
[HttpPost]
|
|
||||||
public async Task<ActionResult<IList<TorrentInfo>>> TorrentsTrackers([FromQuery] QBTorrentsHashRequest request)
|
public async Task<ActionResult<IList<TorrentInfo>>> TorrentsTrackers([FromQuery] QBTorrentsHashRequest request)
|
||||||
{
|
{
|
||||||
if (String.IsNullOrWhiteSpace(request.Hash))
|
if (String.IsNullOrWhiteSpace(request.Hash))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue