How can I configure rtorrent to call the amc script on download complete?
Posted: 26 Aug 2018, 07:15
Hello, first of all please excuse my English, being French I do best with translations of Google and the little knowledge I have.
Here I have a problem, I managed to install Filebot (well I hope) on a debian server but when I run the command:
the result is:
I tried to make a :
but without success
My "rtorrent-postprocess" :
and my ".rtorrent.rc" :
thank you very much.
Here I have a problem, I managed to install Filebot (well I hope) on a debian server but when I run the command:
Code: Select all
sh /home/alex/rtorrent-postprocess
Code: Select all
Locking /home/alex/.session/amc.log
Run script [fn:amc] at [Sun Aug 26 08:45:17 CEST 2018]
Parameter: music = y
Parameter: artwork = n
Parameter: plex = *****
Parameter: ut_dir =
Parameter: ut_kind = multi
Parameter: ut_title =
Parameter: ut_label =
Illegal usage: no input
Failure (°_°)
Code: Select all
chown -R user:user /home/user/.filebot
My "rtorrent-postprocess" :
Code: Select all
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=$3
sh /home/alex/.filebot/filebot.sh --lang fr -script fn:amc --output "/home/alex/Media" --log-file "/home/alex/.session/amc.log" --action symlink --conflict override -non-strict --def music=y artwork=y "ut_dir=$TORRENT_PATH" "ut_kind=multi" "ut_title=$TORRENT_NAME" "ut_label=$TORRENT_LABEL" &
Code: Select all
network.scgi.open_port = 127.0.0.1:5001
encoding.add = UTF-8
network.port_range.set = 45000-65000
network.port_random.set = no
pieces.hash.on_completion.set = no
directory.default.set = /home/alex/torrents
session.path.set = /home/alex/.session
protocol.encryption.set = allow_incoming, try_outgoing, enable_retry
schedule2 = watch_directory,1,1,load.start=/home/alex/watch/*.torrent
schedule2 = untied_directory,5,5,stop_untied=/home/alex/watch/*.torrent
schedule2 = espace_disque_insuffisant,1,30,close_low_diskspace=500M
trackers.use_udp.set = yes
dht.mode.set = off
protocol.pex.set = no
throttle.min_peers.normal.set = 40
throttle.max_peers.normal.set = 100
throttle.min_peers.seed.set = 10
throttle.max_peers.seed.set = 50
throttle.max_uploads.set = 15
execute2 = {sh,-c,/usr/bin/php /var/www/rutorrent/php/initplugins.php alex &}
method.set_key=event.download.finished,filebot_amc,"execute={/home/alex/rtorrent-postprocess,$d.get_base_path=,$d.get_name=,$d.get_custom1=}"