From 1e7d37e6f930bd27250f62e773abb56ef37f7c2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20K=C3=A4venheim?= <144920492+antonkvm@users.noreply.github.com> Date: Sun, 12 May 2024 12:54:25 +0200 Subject: [PATCH 1/4] Add missing parameter to WebUI-API section 'Set torrent share limit' Also organized parameters into a table for clarity and made descriptions more concise. --- WebUI-API-(qBittorrent-4.1).md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/WebUI-API-(qBittorrent-4.1).md b/WebUI-API-(qBittorrent-4.1).md index 591ea88..b5fbb1d 100644 --- a/WebUI-API-(qBittorrent-4.1).md +++ b/WebUI-API-(qBittorrent-4.1).md @@ -2196,12 +2196,17 @@ Cookie: SID=your_sid Content-Type: application/x-www-form-urlencoded Content-Length: length -hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&ratioLimit=1.0&seedingTimeLimit=60 +hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5d7cc2ba0&ratioLimit=1.0&seedingTimeLimit=60&inactiveSeedingTimeLimit=-2 ``` -`hashes` can contain multiple hashes separated by `|` or set to `all` -`ratioLimit` is the max ratio the torrent should be seeded until. `-2` means the global limit should be used, `-1` means no limit. -`seedingTimeLimit` is the max amount of time (minutes) the torrent should be seeded. `-2` means the global limit should be used, `-1` means no limit. +**Parameters:** + +Property | Type | Description +------------------------------|---------|------------ +`hashes` | integer | The hashes of the torrents for which you want to set the share limits. Multiple hashes need to be seperated by `\|` or set to `all`. +`ratioLimit` | integer | The maximum seeding ratio for the torrent. `-2` means the global limit should be used, `-1` means no limit. +`seedingTimeLimit` | integer | The maximum seeding time (minutes) for the torrent. `-2` means the global limit should be used, `-1` means no limit. +`inactiveSeedingTimeLimit` | integer | The maximum amount of time (minutes) the torrent is allowed to seed while being inactive. `-2` means the global limit should be used, `-1` means no limit. **Returns:** From 6775ec6beb60e00c0ba6e56b38afcbe50a7b81d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20K=C3=A4venheim?= <144920492+antonkvm@users.noreply.github.com> Date: Sun, 12 May 2024 12:58:27 +0200 Subject: [PATCH 2/4] fixed ratio parameter type from integer to float --- WebUI-API-(qBittorrent-4.1).md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebUI-API-(qBittorrent-4.1).md b/WebUI-API-(qBittorrent-4.1).md index b5fbb1d..5040902 100644 --- a/WebUI-API-(qBittorrent-4.1).md +++ b/WebUI-API-(qBittorrent-4.1).md @@ -2204,7 +2204,7 @@ hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5 Property | Type | Description ------------------------------|---------|------------ `hashes` | integer | The hashes of the torrents for which you want to set the share limits. Multiple hashes need to be seperated by `\|` or set to `all`. -`ratioLimit` | integer | The maximum seeding ratio for the torrent. `-2` means the global limit should be used, `-1` means no limit. +`ratioLimit` | float | The maximum seeding ratio for the torrent. `-2` means the global limit should be used, `-1` means no limit. `seedingTimeLimit` | integer | The maximum seeding time (minutes) for the torrent. `-2` means the global limit should be used, `-1` means no limit. `inactiveSeedingTimeLimit` | integer | The maximum amount of time (minutes) the torrent is allowed to seed while being inactive. `-2` means the global limit should be used, `-1` means no limit. From 54505b7d7b761bab5440e07ad474f0312e41b893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20K=C3=A4venheim?= <144920492+antonkvm@users.noreply.github.com> Date: Sun, 12 May 2024 13:17:18 +0200 Subject: [PATCH 3/4] mention missing parameter scenario for error code 400 --- WebUI-API-(qBittorrent-4.1).md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/WebUI-API-(qBittorrent-4.1).md b/WebUI-API-(qBittorrent-4.1).md index 5040902..e4a6207 100644 --- a/WebUI-API-(qBittorrent-4.1).md +++ b/WebUI-API-(qBittorrent-4.1).md @@ -2212,7 +2212,8 @@ Property | Type | Description HTTP Status Code | Scenario ----------------------------------|--------------------- -200 | All scenarios +200 | All other scenarios +400 | Bad Request, e.g. missing parameter ## Get torrent upload limit ## From 36e1a8c340fe9bcb8d3d63f12aa4ef999769597e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20K=C3=A4venheim?= <144920492+antonkvm@users.noreply.github.com> Date: Sun, 12 May 2024 22:49:00 +0200 Subject: [PATCH 4/4] Fix typo --- WebUI-API-(qBittorrent-4.1).md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WebUI-API-(qBittorrent-4.1).md b/WebUI-API-(qBittorrent-4.1).md index e4a6207..a48a58b 100644 --- a/WebUI-API-(qBittorrent-4.1).md +++ b/WebUI-API-(qBittorrent-4.1).md @@ -2203,7 +2203,7 @@ hashes=8c212779b4abde7c6bc608063a0d008b7e40ce32|284b83c9c7935002391129fd97f43db5 Property | Type | Description ------------------------------|---------|------------ -`hashes` | integer | The hashes of the torrents for which you want to set the share limits. Multiple hashes need to be seperated by `\|` or set to `all`. +`hashes` | integer | The hashes of the torrents for which you want to set the share limits. Multiple hashes need to be separated by `\|` or set to `all`. `ratioLimit` | float | The maximum seeding ratio for the torrent. `-2` means the global limit should be used, `-1` means no limit. `seedingTimeLimit` | integer | The maximum seeding time (minutes) for the torrent. `-2` means the global limit should be used, `-1` means no limit. `inactiveSeedingTimeLimit` | integer | The maximum amount of time (minutes) the torrent is allowed to seed while being inactive. `-2` means the global limit should be used, `-1` means no limit.