Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/biglysoftware/biglybt-plugin-azexec
Command Runner
https://github.com/biglysoftware/biglybt-plugin-azexec
Last synced: about 2 months ago
JSON representation
Command Runner
- Host: GitHub
- URL: https://github.com/biglysoftware/biglybt-plugin-azexec
- Owner: BiglySoftware
- Created: 2017-10-25T10:44:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T18:19:23.000Z (6 months ago)
- Last Synced: 2024-07-12T20:39:45.102Z (6 months ago)
- Language: Java
- Homepage:
- Size: 58.6 KB
- Stars: 5
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BiglyBT-plugin-azexec
Command Runner (plugin ID 'azexec')This plugin runs a configurable command on completion of a download.
It also supports invocation as a script from a BiglyBT Tag's "Execute On Assign" action using the script syntax of "plugin( azexec, "command" ) since BiglyBT 2801_B16 and plugin version 1.4.8
Since version 1.4.9 and BiglyBT 2801_B19 it also supports single invocation from a script with multiple downloads selected. In this case the variables expansions result in a list of values, not a single value. For example, if you select two downloads with display names "dn1" and "dn2" and then tag them at the same time the %N variable with be expanded to "dn1 dn2" (no quotes unless you add them. To indicate that you want this new behaviour (as opposed to separate invocations) you need to add a "+" to the plugin id - "plugin( azexec+, "command" )
The command supports the following variable expansions:
* %F - Name of the downloaded file (for single file torrents)
* %D - Directory where files are saved
* %N - Displayed name of the download
* %L - Torrent Category/Label
* %T - Tracker Name
* %I - Hex encoded info-hash
* %K - Kind of torrent (single|multi)
* %M - Full torrent file name
* %P - Save path of the torrent (since 1.4.9)## Example
Say you want to execute a command when a completed download enters a stopped state.Create a new Tag (e.g. go to View->Tags Overview and hit the 'Add Tag...' button top right).
Go to the settings for the Tag and set its constraint to "isComplete() && isStopped()" - make sure you do this BEFORE setting the Tag's "execute on assign" value unless you want to execute the command on all existing completed and stopped downloads...)
Right-click on the Tag and select "Execute On Assign->Script" and then enter "plugin( azexec, command-to-run )"