mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
aria2mon: Add secret parameter to getFiles call
This commit is contained in:
parent
e39e1e11a4
commit
98f773f3fa
@ -140,7 +140,7 @@ result.each { |entry|
|
|||||||
end
|
end
|
||||||
print "\n"
|
print "\n"
|
||||||
|
|
||||||
files=client_call(client,"aria2.getFiles",entry['gid'])
|
files=client_call(client,secret,"aria2.getFiles",entry['gid'])
|
||||||
if files.length > 0 then
|
if files.length > 0 then
|
||||||
first_file=files.find{|file| file["selected"]=="true"}
|
first_file=files.find{|file| file["selected"]=="true"}
|
||||||
if first_file != nil then
|
if first_file != nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user