Execute plugin help

Suggest, post, or discuss plugins for Deluge
Post Reply
nickeh
Member
Member
Posts: 32
Joined: Sun Oct 05, 2008 11:18 pm

Execute plugin help

Post by nickeh »

Hi, I'm trying to create a set of scripts to notify XBMC when torrents are added or finished.

This is what I've got:

Code: Select all

#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3

title="Deluge: Torrent added" 
message="$torrentname"

xbmc-send -a "Notification($title, $message)"
Script seems to work, if i execute it from the command line it works great. But i can't get anything to work from the plugin.

This is what i have in the settings for the plugin

Torrent added: "/usr/local/bin/torrentstart.sh"

But It wont start the script when i add torrents, script is executable for all users

Any ideas?
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Execute plugin help

Post by Cas »

did you restart deluge?
nickeh
Member
Member
Posts: 32
Joined: Sun Oct 05, 2008 11:18 pm

Re: Execute plugin help

Post by nickeh »

That did the trick! Many thanks!
Post Reply