I'm trying to create a pushbullet notification when a download completes. I found this tutorial and this tutorial and I'm able to manually execute the script from terminal and I receive the notification successfully. But when I setup the event in the rtorrent.rc file, it doesn't work. This is the line I added:
system.method.set_key = event.download.finished,notify_me5a,"execute=~/push_rtorrent.sh"
I also tried different variations, like just method.setkey (without "system.") Can anyone help?
add a log.execute command to debug the error you made.
Can you be a bit more specific? Am I replacing execute with log.execute?
I added log.execute but it didn't help -- I couldn't see the command in the log. It doesn't seem to be executing it at all. I did some fooling around and changed event.download.finished to event.download.resumed and as soon as I restart rtorrent, I immediately received 100+ pushbullet notifications at once. This is what the line looks like:
works (when rtorrent restarts, it fires a notification for each torrent in rtorrent):
system.method.set_key = event.download.resumed,notifyme,"execute.nothrow=push,\"test\",\"some\""
doesn't work (when a download completes):
system.method.set_key = event.download.finished,notifyme,"execute.nothrow=push,\"test\",\"some\""
This was getting super frustrating. I started commenting out other set_key lines. I finally found that if I comment out the following line in rtorrent.rc, my event.download.finished event was fired:
system.method.set_key = event.download.finished,filebot,"execute={.filebot/scripts-enabled/rtorrent-postprocess.sh,$d.get_base_path=,$d.get_name=,$d.get_custom1=}"
I don't know what that line does exactly, but when it's uncommented, no other event.download.finished events work.
Any ideas what this is?
Well, me neither, you have to search for the rtorrent-postprocess.sh file and go through it to see what its purpose is. Do you use rutorrent?
What happens if you replace execute to execute.nothrow in that line?
After commenting out the filebot line (see comment above), my own event.download.finished started firing properly. Closing this issue as resolved.
Sorry guys issue is presume to be closed but I don't understand how exactly you got your issue resolved,can you give bash script I mean corrected bash script so that I can execute once for all,I Google all the pages but no where I got some one getting success except this thread,i would like it You create few steps to know how to correctly install pushbullet to get notifications.
It will be good for future readers too.
Most helpful comment
After commenting out the filebot line (see comment above), my own event.download.finished started firing properly. Closing this issue as resolved.