AMC Script: Error in file processing not sending email

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
ChromeQ
Posts: 8
Joined: 18 Nov 2019, 06:13

AMC Script: Error in file processing not sending email

Post by ChromeQ »

Hi, I use the filebot amc script with the

Code: Select all

reportError=y
and options, when the script succeeds in renaming and copying my file it does email me (and notify through pushbullet)
However, when it fails it does not send me the email.
Here is the output from one example:

Code: Select all

Run script [fn:amc] at [Wed Apr 14 12:09:59 AEST 2021]
Parameter: seriesFormat = TV Shows/{n}/{n} - Season {s}/{n} - {s}{e.pad(2)} - {t}
Parameter: movieFormat = Films/{n}
Parameter: exec = /home/dav/.kodi/update-kodi.sh
Parameter: gmail = *****
Parameter: pushbullet = *****
Parameter: reportError = y
Parameter: excludeList = /etc/filebot/exclude.txt
Argument[0]: /home/dav/Downloads/Station.19.S04E09.720p.WEB.H264-GGEZ[rarbg]
Use excludes: /etc/filebot/exclude.txt (3)
Input: /home/dav/Downloads/Station.19.S04E09.720p.WEB.H264-GGEZ[rarbg]/station.19.s04e09.720p.web.h264-ggez.mkv
Group: {Series=station 19} => [station.19.s04e09.720p.web.h264-ggez.mkv]
Rename episodes using [TheTVDB] with [Airdate]
Lookup via [Station 19]

Fetching episode data for [Station 19]
[COPY] from [/home/dav/Downloads/Station.19.S04E09.720p.WEB.H264-GGEZ[rarbg]/station.19.s04e09.720p.web.h264-ggez.mkv] to [/mnt/icybox/TV Shows/Station 19/Station 19 - Season 4/Station 19 - 409 - No One Is Alone.mkv]
[COPY] from [/home/dav/Downloads/Station.19.S04E09.720p.WEB.H264-GGEZ[rarbg]/station.19.s04e09.720p.web.h264-ggez.mkv] to [/mnt/icybox/TV Shows/Station 19/Station 19 - Season 4/Station 19 - 409 - No One Is Alone.mkv] failed due to I/O error [Access Denied: /mnt/icybox/TV Sho>
Processed 0 files
Finished without processing any files
Abort (×_×)
As you can see, it failed for a permission error (my bad) on the target directory, I would expect this to have emailed me as the operation was `Abort`ed.

I have also noticed that sometimes (not in this case) that sometimes when there is an error the file is still added to the exclude.txt so running it manually is annoying as I need to remove the line from the file. This is a separate issue though and I will raise another topic when I have a concrete example.
Thanks
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC Script: Error in file processing not sending email

Post by rednoah »

I'd capture the output from a separate process so that you can perform different actions depending on the exit code of the filebot call:
viewtopic.php?t=9801
:idea: Please read the FAQ and How to Request Help.
Post Reply