yep i got that.
but where should I place the amc.groovy script? how does filebot know where to find it?
here is what I've put into .rtorrent.rc placed in my homedir
Code: Select all
system.method.set_key=event.download.finished,filebot_amc,"execute={/home/beltoft/scripts/rtorrent-postprocess,$d.get_base_path=,$d.get_name=,$d.get_custom1=}"
and here is the content of rtorrent-postprocess placed in my ~/scripts dir
Code: Select all
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=$3
filebot -script fn:"/home/beltoft/scripts/amc.groovy" --output "/home/beltoft/shares/video" --log-file amc.log --action copy --conflict auto -non-strict --def subtitles=en,dk --def plex=192.168.10.100 --def pushbullet=e45tf87cKygzUh4Ykw5vb9beg72owZB7fJujz0NzdNxeu --def clean=y --def artwork=y --def excludeList=amc-input.txt "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL"
as you can see I've put the full path to the amc script into the -script parameter. in the guide it says -script fn:amc but it just looked wrong in my eyes as i couldn't understand how filebot could know where to look for the script.
all scripts have execute permission.
also does it break the script if I use the rutorrent plug-in autotools to move completed torrents to another folder? or should I keep both incomplete and complete downloads in 1 folder?
EDIT:
Got it to work by fiddling around a bit and realized that filebot grabs the script from github everytime it needs it. (is it possible to get it to look locally for the script if I want to make some changes to it?)
also there was missing a / from the output path and I didn't have a /tmp/.X11-unix/X0 folder in my system
after i fixed these things i looks like it is working as it should.
however I'm not getting a pushbullet notification as expected