Added parameter root_folder for /command/upload and /command/download

thalieht
2017-09-15 10:20:36 +03:00
parent f379b09d96
commit 82217b9da6

@@ -813,6 +813,10 @@ true
Property | Type | Description Property | Type | Description
------------------------------|---------|------------ ------------------------------|---------|------------
`urls` | string | URLs separated with newlines
`savepath` | string | (optional) Download folder
`cookie` | string | (optional) Cookie sent to download the .torrent file
`category` | string | (optional) Category for the torrent
`skip_checking` `API13` | string | (optional) Skip hash checking. Possible values are `true` and `false` (default) `skip_checking` `API13` | string | (optional) Skip hash checking. Possible values are `true` and `false` (default)
`paused` `API13` | string | (optional) Add torrents in the paused state. Possible values are `true` and `false` (default) `paused` `API13` | string | (optional) Add torrents in the paused state. Possible values are `true` and `false` (default)
`root_folder` `API15` | string | (optional) Create the root folder. Possible values are `true` (default) and `false` `root_folder` `API15` | string | (optional) Create the root folder. Possible values are `true` (default) and `false`
@@ -825,6 +829,7 @@ Property | Type | Description
Cookie: SID=your_sid Cookie: SID=your_sid
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
Content-Length: length Content-Length: length
urls=http://www.nyaa.eu/?page=download%26tid=305093%0Ahttp://www.nyaa.eu/?page=download%26tid=305255%0Amagnet:?xt=urn:btih:4c284ebef5bf0d967e2e174cfe825d9fb40ae5e1%26dn=QBittorrent+2.8.4+Win7+Vista+64+working+version%26tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%26tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%26tr=udp%3A%2F%2Ftracker.istole.it%3A6969%26tr=udp%3A%2F%2Ftracker.ccc.de%3A80 urls=http://www.nyaa.eu/?page=download%26tid=305093%0Ahttp://www.nyaa.eu/?page=download%26tid=305255%0Amagnet:?xt=urn:btih:4c284ebef5bf0d967e2e174cfe825d9fb40ae5e1%26dn=QBittorrent+2.8.4+Win7+Vista+64+working+version%26tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80%26tr=udp%3A%2F%2Ftracker.publicbt.com%3A80%26tr=udp%3A%2F%2Ftracker.istole.it%3A6969%26tr=udp%3A%2F%2Ftracker.ccc.de%3A80
``` ```
Please note that: Please note that:
@@ -883,6 +888,7 @@ Property | Type | Description
POST /command/addTrackers HTTP/1.1 POST /command/addTrackers HTTP/1.1
User-Agent: Fiddler User-Agent: Fiddler
Host: 127.0.0.1 Host: 127.0.0.1
Cookie: SID=your_sid
Content-Type: application/x-www-form-urlencoded Content-Type: application/x-www-form-urlencoded
Content-Length: length Content-Length: length