Code Monkey home page Code Monkey logo

biglybt-plugin-azexec's Introduction

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 )"

biglybt-plugin-azexec's People

Contributors

biglybt avatar parg avatar tuxpaper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

biglybt-plugin-azexec's Issues

Command runner not running batch file

Hi,

I've been using command runner for a very long time (a couple of years or more) but my BiglyBT didn't update automatically so recently I deleted BiglyBT and reinstalled it from scratch in the hope that doing so would fix the update issue.

After installing BiglyBT from scratch I added Command Runner and added the command that was in there previously. This was preserved and then copy and pasted so there's no chance of human error, it's the identical string from the previous install.

However, after all that, Command Runner no longer runs my batch file, or at least it seems that way. Here is the command:

/home/reg/Libraries/Multimedia/copy-shows.sh "%D/%F"

I did the normal checks like making sure the batch file is still there and that it works if I pass a string that the "%D/%F" represents and it still works. My system is OpenSUSE Leap 15.3.

Modify "%" command string?

I use the command runner plugin to push notifications with the PushBullet API. The API for Pushbullet doesn't not like the percent sign "%" used to pass more info from Command runner.

In this case looking to pass %N or command_n to a push notification, but that results in a error in the Pushbullet API. Is their a simple way to get that info without using the percent sign? or can the plugin be modified to use a different sign.. possible even a non sign command?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.