Transmission and FileBot

Any questions? Need some help?
Post Reply
laboss
Posts: 3
Joined: 16 Apr 2014, 11:56

Transmission and FileBot

Post by laboss »

Good afternoon staff, I'm here to set the OMV and I am with a problem in transmission and FileBot, then is the following I have a script that will always be executed at the end of a download of the transmission, the script runs FileBot but does not run, my teste.txt has only first and last line...

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
Thank you in advance for your help
User avatar
rednoah
The Source
Posts: 23933
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Transmission and FileBot

Post by rednoah »

IMMEDIATELY CHANGE YOUR GMAIL PASSWORD You do realize you just told the whole world your email and password?


As for the original issue, I do need the output logs. If there is no logs then filebot is never called, if filebot is called then there will be output.
:idea: Please read the FAQ and How to Request Help.
laboss
Posts: 3
Joined: 16 Apr 2014, 11:56

Re: Transmission and FileBot

Post by laboss »

Ups I think I forgot something ... thanks for the warning, have changed the pw.

The FileBot not generate any log I afraid the problem is in permissos because the script runs because it puts the following line in test.txt:

Code: Select all

Dir /media/648455838455591E/Downloads//Sending Caminho The.Following.S02E13.HDTV.x264-LOL.mp4
Fim

User avatar
rednoah
The Source
Posts: 23933
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Transmission and FileBot

Post by rednoah »

So we know the script is called, and we know that filebot isn't called.

There reason you can't see any errors is because you don't redirect the error output:
http://www.cyberciti.biz/faq/redirectin ... to-stdout/
:idea: Please read the FAQ and How to Request Help.
laboss
Posts: 3
Joined: 16 Apr 2014, 11:56

Re: Transmission and FileBot

Post by laboss »

With these changes the output is already different

Code: Select all


Dir /media/648455838455591E/Downloads//Sending Caminho The.Following.S02E13.HDTV.x264-LOL.mp4
No such file or directory
Fim

User avatar
rednoah
The Source
Posts: 23933
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Transmission and FileBot

Post by rednoah »

Are you sure that /usr/bin/filebot works? Have you tried filebot -version?
:idea: Please read the FAQ and How to Request Help.
Post Reply