ubuntu: rtorrent + AMC script help

Any questions? Need some help?
Post Reply
beltoft
Posts: 13
Joined: 17 May 2014, 16:35

ubuntu: rtorrent + AMC script help

Post by beltoft »

Im totally new to filebot and trying to get it and the AMC script found here http://www.filebot.net/forums/viewtopic.php?f=4&t=215 to work on my ubuntu server.
I've followed the guide for rtorrent but I can't get it to work at all

there's 1 thing I don't understand:

where should I save the AMC script? in the rtorrent-postprocess script it just says "-script fn:amc" i've tried to inset the full path but it don't change anything

is there a special filebot folder for groovy scripts?
User avatar
rednoah
The Source
Posts: 23933
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ubuntu: rtorrent + AMC script help

Post by rednoah »

rtorrent-postprocess is a bash script that you can put anywhere you want, and in that script you call filebot with all the parameters.

The only thing you need to take care of is that the line you paste into rtorrent actually references your rtorrent-postprocess so you did replace /path/to/rtorrent-postprocess right?
:idea: Please read the FAQ and How to Request Help.
beltoft
Posts: 13
Joined: 17 May 2014, 16:35

Re: ubuntu: rtorrent + AMC script help

Post by beltoft »

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
Post Reply