anyone who could help that would be amazing!!!
Code: Select all
/home/user/bin/rtorrent-postprocess.sh
#set var
USER=$(cat /srv/rutorrent/home/db/master.txt)
CONFIG_OUTPUT="/home/$USER/torrents/rtorrent/complete"
TORRENT_LABEL=$3=$ARG_LABEL
ARG_PATH="$1"
ARG_NAME="$2"
ARG_LABEL="$3"
#filebot commands
case $TORRENT_LABEL in
movie*)
filebot -script fn:amc --output "$CONFIG_OUTPUT" --action hardlink --conflict skip -non-strict --log-file amc.log --def unsorted=y music=n artwork=n excludeList=".excludes" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" --def subtitles=en,de,fr --def @/home/$USER/bin/formating &
;;
tv*)
filebot -script fn:amc --output "$CONFIG_OUTPUT" --action hardlink --conflict skip -non-strict --log-file amc.log --def unsorted=y music=n artwork=n excludeList=".excludes" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" --def @/home/$USER/bin/formating &
;;
anime*)
filebot -script fn:amc --output "$CONFIG_OUTPUT" --action hardlink --conflict skip -non-strict --log-file amc.log --def unsorted=y music=n artwork=n excludeList=".excludes" ut_dir="$ARG_PATH" ut_kind="multi" ut_title="$ARG_NAME" ut_label="$ARG_LABEL" --def @/home/$USER/bin/formating &
;;
esac
file has
Code: Select all
movieFormat=Movies/"{n} ({y})"
seriesFormat=Shows/"{n}/{s00e00} - {t}"
animeFormat=Anime/"{n}/{s00e00} - {t}"
musicFormat=Music/{n}/{album+'/'}{pi.pad(2)+'. '}{artist} - {t}
.rtorrent.rc
Code: Select all
system.method.set_key=event.download.finished,filebot,"execute=/home/$U/bin/rtorrent-postprocess.sh"' >> /home/$U/.rtorrent.rc