first I have to say: amazing piece of software. I'm very new to this whole topic but enjoying it a lot already...
I am trying to get filebot_amc running on my Synology NAS so that upon completion of a rtorrent download it will be triggered to copy the media to my library (while the torrent keeps seeding). For starters just with one label/directory (Episodes), later on I wish to add a few more (Movies, Seeds). Fairly standard stuff I guess.
I think I am very close, but one bit is failing - this is what happens:
Whenever a download finishes, rtorrent tries to execute filebot, but for some reason nothing happens (no entry in amc.log).
Rtorrent execute log shows the proper code but it is not executed. Now, if I copy/paste the code from rtorrent log and manually run it in ssh (with 'sh' prefix) it works, filebot will act as instructed in my filebot-postprocess.
I've been trying to figure this out for days, maybe someone knows the issue / can help me to sort it out. Any help is greatly appreciated..!
(As you might have realized by now, I'm not very skilled at this - I'm learning a lot right now

rtorrent config:
Code: Select all
scgi_port = 127.0.0.1:5050
log.execute=/root/rtorrent_exec.log
execute = {sh,-c,/usr/bin/php /opt/share/www/rutorrent/php/initplugins.php &}
system.method.set_key=event.download.finished,filebot_amc,"execute={/opt/etc/rtorrent-postprocess,$d.get_base_path=,$d.get_name=,$d.get_cu
Code: Select all
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=$3
filebot -script fn:amc --output "/volume2/MediaMaster" --log-file amc.log --action copy -non-strict --def music=y --def "seriesFormat=/volume2/MediaMaster/Shows/{n}/{'Season '+s}/{n} - {s00e00} - {t}" "ut_dir=TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
Code: Select all
-rwxrwxrwx 1 root root 354 2015-01-25 00:42 /opt/etc/rtorrent-postprocess
Code: Select all
/opt/etc/rtorrent-postprocess /volume2/MyPath/Download/_Episodes/MyDownloadName Episodes