I'm running ruTorrent version 0.9.7 with AMC. I've got all of the files set up etc (as per below) and FileBot is not starting when files have been downloaded via ruTorrent.
Here is my rtorrent-postprocess.sh file;
Code: Select all
#!/bin/sh -xu
# Input Parameters
ARG_PATH="$1"
ARG_NAME="$2"
ARG_LABEL="$3"
# Configuration
CONFIG_OUTPUT="/home/<username>/Cloud"
filebot -script fn:amc --output "$CONFIG_OUTPUT" --action copy --conflict skip -non-strict --def "ut_label=music" --def "ut_label=tv" --def "ut_label=movie" -no-xattr --log-file amc.log printenv > "/home/<username>/.filebot" --def unsorted=y music=y artwork=y excludeList="/home/<username>/.filebot/.excludes" ut_dir="$ARG_PATH" ut_kind=multi ut_title="$ARG_NAME" ut_label="$ARG_LABEL" --def @/home/<username>/.filebot/formatting &
# filebot -script fn:amc --output "$CONFIG_OUTPUT" --action copy --conflict skip -non-strict -no-xattr --log-file amc.log --def unsorted=y music=y artwork=y excludeList=".excludes" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" &
Code: Select all
movieFormat=Movies/{n}/{plex}
seriesFormat=Shows/{n}/{plex.name}
animeFormat=Anime/{n}/{plex}
musicFormat=Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}
Code: Select all
# -- START HERE --
directory.default.set = /home/<username>/torrents/rtorrent
encoding.add = UTF-8
encryption = allow_incoming,try_outgoing,enable_retry
execute.nothrow = chmod,777,/home/<username>/.config/rpc.socket
execute.nothrow = chmod,777,/home/<username>/.sessions
network.port_random.set = yes
network.port_range.set = 10471-11971
network.scgi.open_local = /var/run/<username>/.rtorrent.sock
schedule2 = chmod_scgi_socket, 0, 0, "execute2=chmod,\"g+w,o=\",/var/run/<username>/.rtorrent.sock"
network.tos.set = throughput
pieces.hash.on_completion.set = no
protocol.pex.set = no
method.set_key=event.download.finished,filebot,"execute={/home/<username>/.filebot/rtorrent-postprocess.sh,$d.base_path=,$d.name=,$d.custom1=}"
method.insert = d.get_data_full_path, simple, "branch=((d.is_multi_file)),((cat,(d.directory))),((cat,(d.directory),/,(d.name)))"
schedule = watch_directory,5,5,load.start=/home/<username>/rwatch/*.torrent
session.path.set = /home/<username>/.sessions/
throttle.global_down.max_rate.set = 0
throttle.global_up.max_rate.set = 0
throttle.max_peers.normal.set = 100
throttle.max_peers.seed.set = -1
throttle.max_uploads.global.set = 100
throttle.min_peers.normal.set = 1
throttle.min_peers.seed.set = -1
trackers.use_udp.set = yes
execute = {sh,-c,/usr/bin/php /srv/rutorrent/php/initplugins.php <username> &}
# -- END HERE --
In RuTorrent, once a torrent has finished it does give a status of finished.
Because FileBot isn't starting up, I can't provide logs either.
Thanks