[Feature Request] Non-Failure Message

All your suggestions, requests and ideas for future development
Post Reply
spetrillo
Posts: 67
Joined: 21 Jun 2015, 20:46

[Feature Request] Non-Failure Message

Post by spetrillo »

Would it be possible to change the Failure response when no files are processed? This is different from when files are processed but there is a legitimate error:

Run script [fn:amc] at [Sun Dec 20 06:00:03 EST 2015]
Parameter: clean = y
Parameter: music = n
Parameter: excludeList = amcexcl.txt
Parameter: plex =
Parameter: reportError = y
Parameter: gmail =
Argument: E:\Torrents\Complete
Using excludes: E:\Media\amcexcl.txt (649)
No files selected for processing
Failure (°_°)

I want to be able to parse the output and send an email that no files were processed. If you could also add an option to send an email when no files are processed that would save me from parsing.

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

Re: [Feature Request] Non-Failure Message

Post by rednoah »

No, because people rely on the exit code behavior, 0 ... it did something, 1 ... it didn't do anything. So if you need something specific, you can always "parse" the output, which is super simple if you just wanna check if a certain line occurs or not.

e.g.

Code: Select all

`filebot amc ... | grep "No files selected for processing" | wc -l`
:idea: Please read the FAQ and How to Request Help.
Post Reply