mirror of https://github.com/aria2/aria2
Added getServers and forceRemove method to aria2rpc
parent
7e7aeac3ff
commit
303cffec8d
|
@ -236,6 +236,7 @@ Usage: #{program_name} addUri URI... [options]
|
||||||
#{program_name} addTorrent /path/to/torrent_file URI... [options]
|
#{program_name} addTorrent /path/to/torrent_file URI... [options]
|
||||||
#{program_name} addMetalink /path/to/metalink_file [options]
|
#{program_name} addMetalink /path/to/metalink_file [options]
|
||||||
#{program_name} remove GID [options]
|
#{program_name} remove GID [options]
|
||||||
|
#{program_name} forceRemove GID [options]
|
||||||
#{program_name} pause GID [options]
|
#{program_name} pause GID [options]
|
||||||
#{program_name} pauseAll [options]
|
#{program_name} pauseAll [options]
|
||||||
#{program_name} forcePause GID [options]
|
#{program_name} forcePause GID [options]
|
||||||
|
@ -252,6 +253,7 @@ Usage: #{program_name} addUri URI... [options]
|
||||||
#{program_name} getFiles GID [options]
|
#{program_name} getFiles GID [options]
|
||||||
#{program_name} getUris GID [options]
|
#{program_name} getUris GID [options]
|
||||||
#{program_name} getPeers GID [options]
|
#{program_name} getPeers GID [options]
|
||||||
|
#{program_name} getServers GID [options]
|
||||||
#{program_name} purgeDownloadResult [options]
|
#{program_name} purgeDownloadResult [options]
|
||||||
#{program_name} removeDownloadResult GID [options]
|
#{program_name} removeDownloadResult GID [options]
|
||||||
#{program_name} changeOption GID [options]
|
#{program_name} changeOption GID [options]
|
||||||
|
@ -337,6 +339,8 @@ elsif command == "unpauseAll" then
|
||||||
result=client.call("aria2."+command)
|
result=client.call("aria2."+command)
|
||||||
elsif command == "remove" then
|
elsif command == "remove" then
|
||||||
result=client.call("aria2."+command, resources[0])
|
result=client.call("aria2."+command, resources[0])
|
||||||
|
elsif command == "forceRemove" then
|
||||||
|
result=client.call("aria2."+command, resources[0])
|
||||||
elsif command == "changePosition" then
|
elsif command == "changePosition" then
|
||||||
result=client.call("aria2."+command, resources[0], resources[1].to_i(),
|
result=client.call("aria2."+command, resources[0], resources[1].to_i(),
|
||||||
resources[2])
|
resources[2])
|
||||||
|
@ -346,6 +350,8 @@ elsif command == "getUris" then
|
||||||
result=client.call("aria2."+command, resources[0])
|
result=client.call("aria2."+command, resources[0])
|
||||||
elsif command == "getPeers" then
|
elsif command == "getPeers" then
|
||||||
result=client.call("aria2."+command, resources[0])
|
result=client.call("aria2."+command, resources[0])
|
||||||
|
elsif command == "getServers" then
|
||||||
|
result=client.call("aria2."+command, resources[0])
|
||||||
elsif command == "purgeDownloadResult" then
|
elsif command == "purgeDownloadResult" then
|
||||||
result=client.call("aria2."+command)
|
result=client.call("aria2."+command)
|
||||||
elsif command == "removeDownloadResult" then
|
elsif command == "removeDownloadResult" then
|
||||||
|
|
Loading…
Reference in New Issue