From b67f6dc1269cc956f04d5b4a7a53b1f1e3c5fe21 Mon Sep 17 00:00:00 2001
From: Tatsuhiro Tsujikawa
In some cases, out parameter has no effect. See note of --out +
This section describes the format of server performance profile. The @@ -3269,7 +3271,7 @@ GID
All code examples come from Python2.7 interpreter.
This method adds new HTTP(S)/FTP/BitTorrent Magnet URI. uris is of type array and its element is URI which is of type string. For @@ -3277,7 +3279,7 @@ BitTorrent Magnet URI, uris must have only one element and it should be BitTorrent Magnet URI. URIs in uris must point to the same file. If you mix other URIs which point to another file, aria2 does not complain but download may fail. options is of type struct and its -members are a pair of option name and value. See Options below for +members are a pair of option name and value. See 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 is larger than the size of the @@ -3303,10 +3305,10 @@ GID of registered download.
>>> s.aria2.addUri(['http://example.org/file'], {}, 0) '3'
This method adds BitTorrent download by uploading .torrent file. If -you want to add BitTorrent Magnet URI, use aria2.addUri method +you want to add BitTorrent Magnet URI, use aria2.addUri method instead. torrent is of type base64 which contains Base64-encoded .torrent file. uris is of type array and its element is URI which is of type string. uris is used for Web-seeding. For single file @@ -3314,7 +3316,7 @@ torrents, URI can be a complete URI pointing to the resource or if URI ends with /, name in torrent file is added. For multi-file torrents, name and path in torrent are added to form a URI for each file. options is of type struct and its members are a pair of option name -and value. See Options below for more details. If position is +and value. See 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 is larger than the size of the queue, it is appended at the @@ -3329,12 +3331,12 @@ Please note that the downloads added by this method are not saved by >>> s.aria2.addTorrent(xmlrpclib.Binary(open('file.torrent').read())) '6'
This method adds Metalink download by uploading .metalink file. metalink is of type base64 which contains Base64-encoded .metalink file. options is of type struct and its members are a pair of -option name and value. See Options below for more details. If +option name and value. See 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 is larger than the size of the queue, it is @@ -3349,7 +3351,7 @@ method are not saved by --save-sess >>> s.aria2.addMetalink(xmlrpclib.Binary(open('file.meta4').read())) ['8']
This method removes the download denoted by gid. gid is of type string. If specified download is in progress, it is stopped at @@ -3363,52 +3365,52 @@ returns GID of removed download.
This method removes the download denoted by gid. This method -behaves just like aria2.remove except that this method removes +behaves just like aria2.remove except that this method removes download without any action which takes time such as contacting BitTorrent tracker.
This method pauses the download denoted by gid. gid is of type string. The status of paused download becomes "paused". If the download is active, the download is placed on the first position of waiting queue. As long as the status is "paused", the download is not -started. To change status to "waiting", use aria2.unpause method. +started. To change status to "waiting", use aria2.unpause method. This method returns GID of paused download.
This method is equal to calling aria2.pause for every active/waiting +
This method is equal to calling aria2.pause for every active/waiting download. This methods returns "OK" for success.
This method pauses the download denoted by gid. This method -behaves just like aria2.pause except that this method pauses +behaves just like aria2.pause except that this method pauses download without any action which takes time such as contacting BitTorrent tracker.
This method is equal to calling aria2.forcePause for every +
This method is equal to calling aria2.forcePause for every active/waiting download. This methods returns "OK" for success.
This method changes the status of the download denoted by gid from "paused" to "waiting". This makes the download eligible to restart. gid is of type string. This method returns GID of unpaused download.
This method is equal to calling aria2.unpause for every active/waiting +
This method is equal to calling aria2.unpause for every active/waiting download. This methods returns "OK" for success.
This method returns download progress of the download denoted by gid. gid is of type string. keys is array of string. If it is specified, the response contains only keys in keys array. If keys is empty or not specified, the response contains all keys. This is useful when you just want specific keys and avoid unnecessary -transfers. For example, aria2.tellStatus("1", ["gid", "status"]) +transfers. For example, aria2.tellStatus("1", ["gid", "status"]) returns gid and status key. The response is of type struct and it contains following keys. The value type is string.
Returns the list of files. The element of list is the same struct - used in aria2.getFiles method. + used in aria2.getFiles method.
This method returns URIs used in the download denoted by gid. gid is of type string. The response is of type array and its element is of @@ -3702,7 +3704,7 @@ status
This method returns file list of the download denoted by gid. gid is of type string. The response is of type array and its element is of @@ -3749,11 +3751,11 @@ uris
Returns the list of URI for this file. The element of list is the - same struct used in aria2.getUris method. + same struct used in aria2.getUris method.
This method returns peer list of the download denoted by gid. gid is of type string. This method is for BitTorrent only. The response @@ -3836,7 +3838,7 @@ seeder
This method returns currently connected HTTP(S)/FTP servers of the download denoted by gid. gid is of type string. The response is of type array and its element is of type struct and it contains @@ -3887,19 +3889,19 @@ downloadSpeed
This method returns the list of active downloads. The response is of type array and its element is the same struct returned by -aria2.tellStatus method. For keys parameter, please refer to -aria2.tellStatus method.
This method returns the list of waiting download, including paused downloads. offset is of type integer and specifies the offset from the download waiting at the front. num is of type integer and specifies the number of downloads to be returned. For keys -parameter, please refer to aria2.tellStatus method.
If offset is a positive integer, this method returns downloads in the range of [offset, offset+num).
offset can be a negative integer. offset == -1 points last @@ -3911,18 +3913,18 @@ in this order. aria2.tellWaiting(0, 1) returns ["A"]. aria2.tellWaiting(1, 2) returns ["B", "C"]. aria2.tellWaiting(-1, 2) returns ["C", "B"].
The response is of type array and its element is the same struct -returned by aria2.tellStatus method.
This method returns the list of stopped download. offset is of type integer and specifies the offset from the oldest download. num is of type integer and specifies the number of downloads to be returned. -For keys parameter, please refer to aria2.tellStatus method.
offset and num have the same semantics as aria2.tellWaiting +For keys parameter, please refer to aria2.tellStatus method.
offset and num have the same semantics as aria2.tellWaiting method.
The response is of type array and its element is the same struct -returned by aria2.tellStatus method.
This method changes the position of the download denoted by gid. pos is of type integer. how is of type string. If how is @@ -3938,7 +3940,7 @@ destination position.
This method removes URIs in delUris from and appends URIs in addUris to download denoted by gid. delUris and addUris are @@ -3957,39 +3959,39 @@ specify (at least) 3 "http://example.org/aria2" in delUris. This method returns a list which contains 2 integers. The first integer is the number of URIs deleted. The second integer is the number of URIs added.
This method returns options of the download denoted by gid. The response is of type struct. Its key is the name of option. The value type is string.
This method changes options of the download denoted by gid dynamically. gid is of type string. options is of type struct -and the available options are: bt-max-peers, -bt-request-peer-speed-limit, max-download-limit and -max-upload-limit. This method returns "OK" for success.
This method returns global options. The response is of type struct. Its key is the name of option. The value type is string. Because global options are used as a template for the options of newly added download, the response contains keys returned by -aria2.getOption method.
This method changes global options dynamically. options is of type -struct and the available options are max-concurrent-downloads, -max-overall-download-limit, max-overall-upload-limit, log-level -and log. Using log option, you can dynamically start logging or +struct and the available options are max-concurrent-downloads, +max-overall-download-limit, max-overall-upload-limit, log-level +and log. Using log option, you can dynamically start logging or change log file. To stop logging, give empty string("") as a parameter value. Note that log file is always opened in append mode. This method returns "OK" for success.
This method purges completed/error/removed downloads to free memory. This method returns "OK".
This method returns version of the program and the list of enabled features. The response is of type struct and contains following keys.
This method returns session information. The response is of type struct and contains following key.
This method shutdowns aria2. This method returns "OK".
This method shutdowns aria2. This method behaves like aria2.shutdown +
This method shutdowns aria2. This method behaves like aria2.shutdown except that any actions which takes time such as contacting BitTorrent tracker are skipped. This method returns "OK".
This methods encapsulates multiple method calls in a single request. methods is of type array and its element is struct. The struct @@ -4083,7 +4085,7 @@ http://example.org/file and second one is file.torrent:
In case of error, aria2 returns faultCode=1 and the error message in faultString.
Same options for -i list are available. See Input File subsection for complete list of options.
In the option struct, name element is option name(without preceding "--") and value element is argument as string.
header and index-out option are allowed multiple times in +
header and index-out +option are allowed multiple times in command-line. Since name should be unique in struct(many XML-RPC library implementation uses hash or dict for struct), single string is not enough. To overcome this situation, they can take array as value @@ -4583,7 +4586,7 @@ files in the program, then also delete it here.