Code: Select all
{
"file": 1,
"format": 1
}{
"commands": [
[
"5cc6d491c5f8a21ee676feac31852355fa96dedc",
"Torrent Complete",
"/var/lib/deluge/scripts/notify_xbmc_complete.sh"
],
[
"dc9db2645da61fbb4c5a68723d22bf7b70186934",
"Torrent Added",
"/var/lib/deluge/scripts/notify_xbmc_started.sh"
]
]
}
Code: Select all
#!/bin/bash
torrentid=$1
torrentname=$2
torrentpath=$3
subject="Started download new torrent!"
message="$torrentname to $torrentpath"
wget -q --delete-after "http://XBMC:@192.168.1.251:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn(Notification($subject,$message,18000))" > /dev/null 2>&1
echo -e "\n$torrentid : $torrentname : $torrentpath" >> /var/lib/deluge/scripts.log
Running the scripot manualy does give output to scripts.log.