I leave here my script
Code: Select all
if [[ -z "$TR_TORRENT_DIR" || -z "$TR_TORRENT_NAME" ]]; then
echo 'transmission-post-process.sh: set $TR_TORRENT_{DIR,NAME} or supply a path as an argument' >&2
exit 1
fi
echo "Dir $TR_TORRENT_DIR Caminho $TR_TORRENT_NAME" > /mnt/Disco1/NAS/scripts/teste.txt
/usr/bin/filebot -script fn:amc \
--output "/mnt/Disco2/Downloads" \
--action copy \
--conflict override \
--log-file amc.log \
--log all \
--def \
xbmc=10.10.10.200 \
gmail=***** \
subtitles=pt,br \
music=y \
artwork=y \
storeReport=y \
skipExtract=n \
deleteAfterExtract=y \
excludeList=amc-input.txt \
"ut_dir=$TR_TORRENT_DIR" \
"ut_kind=multi" \
"ut_title=$TR_TORRENT_NAME" \
"seriesFormat=/mnt/Disco2/Series/{n}/{'S'+s.pad(2)}/{fn}" \
"animeFormat=/mnt/Disco2/Anime/{n}/{fn}" \
"movieFormat=/mnt/Disco1/Filmes/{n} {y}/{fn}" \
"musicFormat=/mnt/Disco2/Musica/{n}/{fn}" >> /mnt/Disco1/NAS/scripts/teste.txt
echo "Fim" >> /mnt/Disco1/NAS/scripts/teste.txt