mirror of https://github.com/aria2/aria2
2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed server, port, user and passwd key from options before XMLRPC::Client.call since they are not options of aria2. * doc/xmlrpc/aria2mon * doc/xmlrpc/aria2rpcpull/1/head
parent
41ac8fe45d
commit
83e87160ac
|
@ -1,3 +1,10 @@
|
||||||
|
2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
|
Removed server, port, user and passwd key from options before
|
||||||
|
XMLRPC::Client.call since they are not options of aria2.
|
||||||
|
* doc/xmlrpc/aria2mon
|
||||||
|
* doc/xmlrpc/aria2rpc
|
||||||
|
|
||||||
2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Included version number in user-agent string.
|
Included version number in user-agent string.
|
||||||
|
|
|
@ -84,6 +84,11 @@ client=XMLRPC::Client.new3({:host => options["server"],
|
||||||
:user => options["user"],
|
:user => options["user"],
|
||||||
:password => options["passwd"]})
|
:password => options["passwd"]})
|
||||||
|
|
||||||
|
options.delete("server")
|
||||||
|
options.delete("port")
|
||||||
|
options.delete("user")
|
||||||
|
options.delete("passwd")
|
||||||
|
|
||||||
result=client.call("aria2.tellActive")
|
result=client.call("aria2.tellActive")
|
||||||
|
|
||||||
print "-- Download Progress --\n"
|
print "-- Download Progress --\n"
|
||||||
|
|
|
@ -216,6 +216,11 @@ client=XMLRPC::Client.new3({:host => options["server"],
|
||||||
:path => "/rpc",
|
:path => "/rpc",
|
||||||
:user => options["user"],
|
:user => options["user"],
|
||||||
:password => options["passwd"]})
|
:password => options["passwd"]})
|
||||||
|
|
||||||
|
options.delete("server")
|
||||||
|
options.delete("port")
|
||||||
|
options.delete("user")
|
||||||
|
options.delete("passwd")
|
||||||
|
|
||||||
if command == "addUri" then
|
if command == "addUri" then
|
||||||
result=client.call("aria2."+command, resources, options)
|
result=client.call("aria2."+command, resources, options)
|
||||||
|
|
Loading…
Reference in New Issue