Hi !
I m trying to recover subs via Hazel using this command :
filebot -get-subtitles "$1" --lang en --output srt --encoding utf8 -non-strict
All gets ok, but i need to know if the subtitle has been found or not, i mean, when a sub is not found i need a command flag "false" or "0" return, and actually it returns a a large string "No matches found:xxxxxxxx"
Could somebody help me ??
The idea is to do something like this in Sheel script and Hazel :
k=$(filebot -get-subtitles "$1" --lang en --output srt --encoding utf8 -non-strict)
if ($k=0) then
exit 1
else
exit 0
fi
Thanks in advance !
Help with FileBot and Hazel please !
Re: Help with FileBot and Hazel please !
I guess you could simply have your shell script parse the output and then return the appropriate error code for Hazel.