mirror of https://github.com/aria2/aria2
2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added changePosition to aria2rpc. * doc/xmlrpc/aria2rpcpull/1/head
parent
cb0768febe
commit
f927654103
|
@ -1,3 +1,8 @@
|
|||
2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Added changePosition to aria2rpc.
|
||||
* doc/xmlrpc/aria2rpc
|
||||
|
||||
2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Documented changePosition XML-RPC method in man page.
|
||||
|
|
|
@ -177,9 +177,10 @@ Usage: #{program_name} addUri URI... [options]
|
|||
#{program_name} addTorrent /path/to/torrent_file URI... [options]
|
||||
#{program_name} addMetalink /path/to/metalink_file [options]
|
||||
#{program_name} remove GID [options]
|
||||
#{program_name} changePosition GID pos how [options]
|
||||
#{program_name} tellStatus GID [options]
|
||||
#{program_name} tellActive [options]
|
||||
#{program_name} tellWaiting [options]
|
||||
#{program_name} tellWaiting offset num [options]
|
||||
#{program_name} getOption GID [options]
|
||||
#{program_name} getGlobalOption [options]
|
||||
#{program_name} getFiles GID [options]
|
||||
|
@ -249,6 +250,9 @@ elsif command == "getGlobalOption" then
|
|||
result=client.call("aria2."+command)
|
||||
elsif command == "remove" then
|
||||
result=client.call("aria2."+command, resources[0])
|
||||
elsif command == "changePosition" then
|
||||
result=client.call("aria2."+command, resources[0], resources[1].to_i(),
|
||||
resources[2])
|
||||
elsif command == "getFiles" then
|
||||
result=client.call("aria2."+command, resources[0])
|
||||
elsif command == "getUris" then
|
||||
|
|
Loading…
Reference in New Issue