mirror of https://github.com/aria2/aria2
Documented --rpc-save-upload-metadata option in manpage
parent
da8086cbc9
commit
b48d9082db
|
@ -944,6 +944,16 @@ RPC Options
|
||||||
decrypted and in PEM format. Use :option:`--rpc-secure` option to
|
decrypted and in PEM format. Use :option:`--rpc-secure` option to
|
||||||
enable encryption. See also :option:`--rpc-certificate` option.
|
enable encryption. See also :option:`--rpc-certificate` option.
|
||||||
|
|
||||||
|
.. option:: --rpc-save-upload-metadata[=true|false]
|
||||||
|
|
||||||
|
Save the uploaded torrent or metalink metadata in the directory
|
||||||
|
specified by :option:`--dir` option. The filename consists of SHA-1
|
||||||
|
hash hex string of metadata plus extension. For torrent, the
|
||||||
|
extension is '.torrent'. For metalink, it is '.meta4'. If false is
|
||||||
|
given to this option, the downloads added by
|
||||||
|
:func:`aria2.addTorrent` or :func:`aria2.addMetalink` will not be
|
||||||
|
saved by :option:`--save-session` option. Default: ``false``
|
||||||
|
|
||||||
.. option:: --rpc-secure[=true|false]
|
.. option:: --rpc-secure[=true|false]
|
||||||
|
|
||||||
RPC transport will be encrypted by SSL/TLS. The RPC clients must
|
RPC transport will be encrypted by SSL/TLS. The RPC clients must
|
||||||
|
@ -1760,6 +1770,7 @@ of URIs. These optional lines must start with white space(s).
|
||||||
* :option:`remove-control-file <--remove-control-file>`
|
* :option:`remove-control-file <--remove-control-file>`
|
||||||
* :option:`retry-wait <--retry-wait>`
|
* :option:`retry-wait <--retry-wait>`
|
||||||
* :option:`reuse-uri <--reuse-uri>`
|
* :option:`reuse-uri <--reuse-uri>`
|
||||||
|
* :option:`rpc-save-upload-metadata <--rpc-save-upload-metadata>`
|
||||||
* :option:`seed-ratio <--seed-ratio>`
|
* :option:`seed-ratio <--seed-ratio>`
|
||||||
* :option:`seed-time <--seed-time>`
|
* :option:`seed-time <--seed-time>`
|
||||||
* :option:`select-file <--select-file>`
|
* :option:`select-file <--select-file>`
|
||||||
|
@ -1953,26 +1964,28 @@ All code examples come from Python2.7 interpreter.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
This method adds BitTorrent download by uploading ".torrent" file. If
|
This method adds BitTorrent download by uploading ".torrent" file.
|
||||||
you want to add BitTorrent Magnet URI, use :func:`aria2.addUri` method
|
If you want to add BitTorrent Magnet URI, use :func:`aria2.addUri`
|
||||||
instead. *torrent* is of type base64 which contains Base64-encoded
|
method instead. *torrent* is of type base64 which contains
|
||||||
".torrent" file. *uris* is of type array and its element is URI which
|
Base64-encoded ".torrent" file. *uris* is of type array and its
|
||||||
is of type string. *uris* is used for Web-seeding. For single file
|
element is URI which is of type string. *uris* is used for
|
||||||
torrents, URI can be a complete URI pointing to the resource or if URI
|
Web-seeding. For single file torrents, URI can be a complete URI
|
||||||
ends with /, name in torrent file is added. For multi-file torrents,
|
pointing to the resource or if URI ends with /, name in torrent file
|
||||||
name and path in torrent are added to form a URI for each file.
|
is added. For multi-file torrents, name and path in torrent are
|
||||||
*options* is of type struct and its members are a pair of option name
|
added to form a URI for each file. *options* is of type struct and
|
||||||
and value. See :ref:`rpc_options` below for more details. If *position* is
|
its members are a pair of option name and value. See
|
||||||
given as an integer starting from 0, the new download is inserted at
|
:ref:`rpc_options` below for more details. If *position* is given
|
||||||
|
as an integer starting from 0, the new download is inserted at
|
||||||
*position* in the waiting queue. If *position* is not given or
|
*position* in the waiting queue. If *position* is not given or
|
||||||
*position* is larger than the size of the queue, it is appended at the
|
*position* is larger than the size of the queue, it is appended at
|
||||||
end of the queue. This method returns GID of registered download.
|
the end of the queue. This method returns GID of registered
|
||||||
The uploaded data is saved as a file named hex string of SHA-1 hash of data
|
download. If :option:`--rpc-save-upload-metadata` is ``true``, the
|
||||||
plus ".torrent" in the directory specified by :option:`--dir <-d>`
|
uploaded data is saved as a file named hex string of SHA-1 hash of
|
||||||
option.
|
data plus ".torrent" in the directory specified by :option:`--dir
|
||||||
The example of filename is 0a3893293e27ac0490424c06de4d09242215f0a6.torrent.
|
<-d>` option. The example of filename is
|
||||||
If same file already exists, it is overwritten.
|
``0a3893293e27ac0490424c06de4d09242215f0a6.torrent``. If same file
|
||||||
If the file cannot be saved successfully,
|
already exists, it is overwritten. If the file cannot be saved
|
||||||
|
successfully or :option:`--rpc-save-upload-metadata` is ``false``,
|
||||||
the downloads added by this method are not saved by
|
the downloads added by this method are not saved by
|
||||||
:option:`--save-session`.
|
:option:`--save-session`.
|
||||||
|
|
||||||
|
@ -2009,20 +2022,21 @@ All code examples come from Python2.7 interpreter.
|
||||||
|
|
||||||
|
|
||||||
This method adds Metalink download by uploading ".metalink" file.
|
This method adds Metalink download by uploading ".metalink" file.
|
||||||
*metalink* is of type base64 which contains Base64-encoded ".metalink"
|
*metalink* is of type base64 which contains Base64-encoded
|
||||||
file. *options* is of type struct and its members are a pair of
|
".metalink" file. *options* is of type struct and its members are a
|
||||||
option name and value. See :ref:`rpc_options` below for more details. If
|
pair of option name and value. See :ref:`rpc_options` below for more
|
||||||
*position* is given as an integer starting from 0, the new download is
|
details. If *position* is given as an integer starting from 0, the
|
||||||
inserted at *position* in the waiting queue. If *position* is not
|
new download is inserted at *position* in the waiting queue. If
|
||||||
given or *position* is larger than the size of the queue, it is
|
*position* is not given or *position* is larger than the size of the
|
||||||
appended at the end of the queue. This method returns array of GID of
|
queue, it is appended at the end of the queue. This method returns
|
||||||
registered download.
|
array of GID of registered download. If
|
||||||
The uploaded data is saved as a file named hex string of SHA-1 hash of data
|
:option:`--rpc-save-upload-metadata` is ``true``, the uploaded data
|
||||||
plus ".metalink" in the directory specified by :option:`--dir <-d>`
|
is saved as a file named hex string of SHA-1 hash of data plus
|
||||||
option.
|
".metalink" in the directory specified by :option:`--dir <-d>`
|
||||||
The example of filename is 0a3893293e27ac0490424c06de4d09242215f0a6.metalink.
|
option. The example of filename is
|
||||||
If same file already exists, it is overwritten.
|
``0a3893293e27ac0490424c06de4d09242215f0a6.metalink``. If same file
|
||||||
If the file cannot be saved successfully,
|
already exists, it is overwritten. If the file cannot be saved
|
||||||
|
successfully or :option:`--rpc-save-upload-metadata` is ``false``,
|
||||||
the downloads added by this method are not saved by
|
the downloads added by this method are not saved by
|
||||||
:option:`--save-session`.
|
:option:`--save-session`.
|
||||||
|
|
||||||
|
@ -2896,8 +2910,9 @@ All code examples come from Python2.7 interpreter.
|
||||||
:option:`dry-run <--dry-run>`,
|
:option:`dry-run <--dry-run>`,
|
||||||
:option:`metalink-base-uri <--metalink-base-uri>`,
|
:option:`metalink-base-uri <--metalink-base-uri>`,
|
||||||
:option:`parameterized-uri <-P>`,
|
:option:`parameterized-uri <-P>`,
|
||||||
:option:`pause <--pause>` and
|
:option:`pause <--pause>`,
|
||||||
:option:`piece-length <--piece-length>`.
|
:option:`piece-length <--piece-length>` and
|
||||||
|
:option:`rpc-save-upload-metadata <--rpc-save-upload-metadata>` option.
|
||||||
This method returns ``"OK"`` for success.
|
This method returns ``"OK"`` for success.
|
||||||
|
|
||||||
**JSON-RPC Example**
|
**JSON-RPC Example**
|
||||||
|
|
Loading…
Reference in New Issue