mirror of
https://github.com/transmission/transmission.git
synced 2026-04-02 00:27:38 +01:00
refactor: rename unreleased quarks to snake_case (#7483)
* refactor: rename `sequentialDownload` to `sequential_download` * refactor: rename `beginPiece` to `begin_piece` * refactor: rename `endPiece` to `end_piece` * refactor: rename `ipProtocol` to `ip_protocol` * refactor: rename `preferred-transport` to `preferred_transport`
This commit is contained in:
@@ -92,7 +92,7 @@ Here is a sample of the three basic types: respectively Boolean, Number and Stri
|
||||
* **tcp-enabled:** Boolean (default = true) Optionally disable TCP connection to other peers. Never disable TCP when you also disable µTP, because then your client would not be able to communicate. Disabling TCP might also break webseeds. Unless you have a good reason, you should not set this to false.
|
||||
* **torrent-added-verify-mode:** String ("fast", "full", default: "fast") Whether newly-added torrents' local data should be fully verified when added, or wait and verify them on-demand later. See [#2626](https://github.com/transmission/transmission/pull/2626) for more discussion.
|
||||
* **utp-enabled:** Boolean (default = true) Enable [Micro Transport Protocol (µTP)](https://en.wikipedia.org/wiki/Micro_Transport_Protocol)
|
||||
* **preferred-transport:** String ("utp" = Prefer µTP, "tcp" = Prefer TCP; default = "utp") Choose your preferred transport protocol (has no effect if one of them is disabled).
|
||||
* **preferred_transport:** String ("utp" = Prefer µTP, "tcp" = Prefer TCP; default = "utp") Choose your preferred transport protocol (has no effect if one of them is disabled).
|
||||
* **sleep-per-seconds-during-verify:** Number (default = 100) Controls the duration in milliseconds for which the verification process will pause to reduce disk I/O pressure.
|
||||
|
||||
#### Peers
|
||||
@@ -103,7 +103,7 @@ Here is a sample of the three basic types: respectively Boolean, Number and Stri
|
||||
* **peer-limit-per-torrent:** Number (default = 50)
|
||||
* **peer-socket-tos:** String (default = "le") Set the [DiffServ](https://en.wikipedia.org/wiki/Differentiated_services) parameter for outgoing packets. Allowed values are lowercase DSCP names. See the `tr_tos_t` class from `libtransmission/net.h` for the exact list of possible values.
|
||||
* **reqq:** Number (default = 2000) The number of outstanding block requests a peer is allowed to queue in the client. The higher this number, the higher the max possible upload speed towards each peer.
|
||||
* **sequentialDownload** Boolean (default = false) Enable sequential download by default when adding torrents.
|
||||
* **sequential_download** Boolean (default = false) Enable sequential download by default when adding torrents.
|
||||
|
||||
#### Peer Port
|
||||
* **peer-port:** Number (default = 51413)
|
||||
|
||||
@@ -160,7 +160,7 @@ Request arguments:
|
||||
| `seedIdleMode` | number | which seeding inactivity to use. See tr_idlelimit
|
||||
| `seedRatioLimit` | double | torrent-level seeding ratio
|
||||
| `seedRatioMode` | number | which ratio to use. See tr_ratiolimit
|
||||
| `sequentialDownload` | boolean | download torrent pieces sequentially
|
||||
| `sequential_download` | boolean | download torrent pieces sequentially
|
||||
| `trackerAdd` | array | **DEPRECATED** use trackerList instead
|
||||
| `trackerList` | string | string of announce URLs, one per line, and a blank line between [tiers](https://www.bittorrent.org/beps/bep_0012.html).
|
||||
| `trackerRemove` | array | **DEPRECATED** use trackerList instead
|
||||
@@ -271,7 +271,7 @@ The 'source' column here corresponds to the data structure there.
|
||||
| `seedIdleMode`| number| tr_inactivelimit
|
||||
| `seedRatioLimit`| double| tr_torrent
|
||||
| `seedRatioMode`| number| tr_ratiolimit
|
||||
| `sequentialDownload`| boolean| tr_torrent
|
||||
| `sequential_download`| boolean| tr_torrent
|
||||
| `sizeWhenDone`| number| tr_stat
|
||||
| `startDate`| number| tr_stat
|
||||
| `status`| number (see below)| tr_stat
|
||||
@@ -297,8 +297,8 @@ The 'source' column here corresponds to the data structure there.
|
||||
| `bytesCompleted` | number | tr_file_view
|
||||
| `length` | number | tr_file_view
|
||||
| `name` | string | tr_file_view
|
||||
| `beginPiece` | number | tr_file_view
|
||||
| `endPiece` | number | tr_file_view
|
||||
| `begin_piece` | number | tr_file_view
|
||||
| `end_piece` | number | tr_file_view
|
||||
|
||||
Files are returned in the order they are laid out in the torrent. References to "file indices" throughout this specification should be interpreted as the position of the file within this ordering, with the first file bearing index 0.
|
||||
|
||||
@@ -456,20 +456,20 @@ Request arguments:
|
||||
|
||||
| Key | Value Type | Description
|
||||
|:--|:--|:--
|
||||
| `cookies` | string | pointer to a string of one or more cookies.
|
||||
| `download-dir` | string | path to download the torrent to
|
||||
| `filename` | string | filename or URL of the .torrent file
|
||||
| `labels` | array | array of string labels
|
||||
| `metainfo` | string | base64-encoded .torrent content
|
||||
| `paused` | boolean | if true, don't start the torrent
|
||||
| `peer-limit` | number | maximum number of peers
|
||||
| `bandwidthPriority` | number | torrent's bandwidth tr_priority_t
|
||||
| `files-wanted` | array | indices of file(s) to download
|
||||
| `files-unwanted` | array | indices of file(s) to not download
|
||||
| `priority-high` | array | indices of high-priority file(s)
|
||||
| `priority-low` | array | indices of low-priority file(s)
|
||||
| `priority-normal` | array | indices of normal-priority file(s)
|
||||
| `sequentialDownload` | boolean | download torrent pieces sequentially
|
||||
| `cookies` | string | pointer to a string of one or more cookies.
|
||||
| `download-dir` | string | path to download the torrent to
|
||||
| `filename` | string | filename or URL of the .torrent file
|
||||
| `labels` | array | array of string labels
|
||||
| `metainfo` | string | base64-encoded .torrent content
|
||||
| `paused` | boolean | if true, don't start the torrent
|
||||
| `peer-limit` | number | maximum number of peers
|
||||
| `bandwidthPriority` | number | torrent's bandwidth tr_priority_t
|
||||
| `files-wanted` | array | indices of file(s) to download
|
||||
| `files-unwanted` | array | indices of file(s) to not download
|
||||
| `priority-high` | array | indices of high-priority file(s)
|
||||
| `priority-low` | array | indices of low-priority file(s)
|
||||
| `priority-normal` | array | indices of normal-priority file(s)
|
||||
| `sequential_download` | boolean | download torrent pieces sequentially
|
||||
|
||||
Either `filename` **or** `metainfo` **must** be included. All other arguments are optional.
|
||||
|
||||
@@ -573,7 +573,7 @@ Response arguments: `path`, `name`, and `id`, holding the torrent ID integer
|
||||
| `seed-queue-size` | number | max number of torrents to uploaded at once (see seed-queue-enabled)
|
||||
| `seedRatioLimit` | double | the default seed ratio for torrents to use
|
||||
| `seedRatioLimited` | boolean | true if seedRatioLimit is honored by default
|
||||
| `sequentialDownload` | boolean | true means sequential download is enabled by default for added torrents
|
||||
| `sequential_download` | boolean | true means sequential download is enabled by default for added torrents
|
||||
| `session-id` | string | the current `X-Transmission-Session-Id` value
|
||||
| `speed-limit-down-enabled` | boolean | true means enabled
|
||||
| `speed-limit-down` | number | max global download speed (KBps)
|
||||
@@ -670,8 +670,8 @@ from the outside world.
|
||||
|
||||
Method name: `port-test`
|
||||
|
||||
Request arguments: an optional argument `ipProtocol`.
|
||||
`ipProtocol` is a string specifying the IP protocol version to be used for the port test.
|
||||
Request arguments: an optional argument `ip_protocol`.
|
||||
`ip_protocol` is a string specifying the IP protocol version to be used for the port test.
|
||||
Set to `ipv4` to check IPv4, or set to `ipv6` to check IPv6.
|
||||
For backwards compatibility, it is allowed to omit this argument to get the behaviour before Transmission `4.1.0`,
|
||||
which is to check whichever IP protocol the OS happened to use to connect to our port test service,
|
||||
@@ -682,7 +682,7 @@ Response arguments:
|
||||
| Key | Value Type | Description
|
||||
| :-- | :-- | :--
|
||||
| `port-is-open` | boolean | true if port is open, false if port is closed
|
||||
| `ipProtocol` | string | `ipv4` if the test was carried out on IPv4, `ipv6` if the test was carried out on IPv6, unset if it cannot be determined
|
||||
| `ip_protocol` | string | `ipv4` if the test was carried out on IPv4, `ipv6` if the test was carried out on IPv6, unset if it cannot be determined
|
||||
|
||||
### 4.5 Session shutdown
|
||||
This method tells the transmission session to shut down.
|
||||
@@ -1029,11 +1029,11 @@ Transmission 4.0.0 (`rpc-version-semver` 5.3.0, `rpc-version`: 17)
|
||||
Transmission 4.1.0 (`rpc-version-semver` 5.4.0, `rpc-version`: 18)
|
||||
| Method | Description
|
||||
|:---|:---
|
||||
| `session-get` | new arg `sequentialDownload`
|
||||
| `session-set` | new arg `sequentialDownload`
|
||||
| `torrent-add` | new arg `sequentialDownload`
|
||||
| `torrent-get` | new arg `sequentialDownload`
|
||||
| `torrent-set` | new arg `sequentialDownload`
|
||||
| `torrent-get` | new arg `files.beginPiece`
|
||||
| `torrent-get` | new arg `files.endPiece`
|
||||
| `port-test` | new arg `ipProtocol`
|
||||
| `session-get` | new arg `sequential_download`
|
||||
| `session-set` | new arg `sequential_download`
|
||||
| `torrent-add` | new arg `sequential_download`
|
||||
| `torrent-get` | new arg `sequential_download`
|
||||
| `torrent-set` | new arg `sequential_download`
|
||||
| `torrent-get` | new arg `files.begin_piece`
|
||||
| `torrent-get` | new arg `files.end_piece`
|
||||
| `port-test` | new arg `ip_protocol`
|
||||
|
||||
Reference in New Issue
Block a user