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
pull/1/head
Tatsuhiro Tsujikawa 2009-10-04 13:27:09 +00:00
parent 41ac8fe45d
commit 83e87160ac
3 changed files with 17 additions and 0 deletions

View File

@ -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>
Included version number in user-agent string.

View File

@ -84,6 +84,11 @@ client=XMLRPC::Client.new3({:host => options["server"],
:user => options["user"],
:password => options["passwd"]})
options.delete("server")
options.delete("port")
options.delete("user")
options.delete("passwd")
result=client.call("aria2.tellActive")
print "-- Download Progress --\n"

View File

@ -216,6 +216,11 @@ client=XMLRPC::Client.new3({:host => options["server"],
:path => "/rpc",
:user => options["user"],
:password => options["passwd"]})
options.delete("server")
options.delete("port")
options.delete("user")
options.delete("passwd")
if command == "addUri" then
result=client.call("aria2."+command, resources, options)