Communicate with aria2, an interactive panel included.
Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/HSaria2.spoon.zip
Signature | HSaria2.max_items |
---|---|
Type | Variable |
Description | How many items should be created on aria2 panel? Defaults to 5. |
Source | Source/HSaria2.spoon/init.lua line 17 |
Signature | HSaria2.refresh_interval |
---|---|
Type | Variable |
Description | How often should HSaria2 retrieve data from RPC server? Defaults to 1 (second). |
Source | Source/HSaria2.spoon/init.lua line 22 |
Signature | HSaria2:connectToHost(hostaddr, secret) |
---|---|
Type | Method |
Description | Try connect to |
Parameters |
|
Returns | |
Source | Source/HSaria2.spoon/init.lua line 27 |
Signature | HSaria2:newTask(tasktype, urls, hostaddr, secret) |
---|---|
Type | Method |
Description | Create new regular/bt/metalink task, and send notification when done. |
Parameters |
|
Returns | |
Source | Source/HSaria2.spoon/init.lua line 456 |
Signature | HSaria2:sendCommand(command, gid, hostaddr, secret) |
---|---|
Type | Method |
Description | Send a command to |
Parameters |
|
Returns | |
Source | Source/HSaria2.spoon/init.lua line 512 |
Signature | HSaria2:togglePanel() |
---|---|
Type | Method |
Description | Toggle the display of aria2 panel. The panel allows users to interact with aria2, add new tasks, pause them, or remove, purge … etc. |
Parameters |
|
Returns | |
Source | Source/HSaria2.spoon/init.lua line 551 |