Have a MythTV related problem? Ask for help from other MythTV users here.
Moderator: Forum Moderators
-
nello
- Junior
- Posts: 27
- Joined: Sun Mar 08, 2015 7:33 pm
Post
by nello »
Is it really true that mythcommflag return codes below 126 should be ignored? That's what seems to be implied by the code posted on this wiki page:
https://www.mythtv.org/wiki/Script_-_RemoveCommercials
Scroll down about halfway and you'll see this:
Code: Select all
if [ $ERROR -gt 126 ]; then
echo "Commercial flagging failed for ${FILENAME} with error $ERROR"
exit $ERROR
fi
Does anyone know what the mythcommflag return codes mean? I can't find them documented anywhere; sorry if I've missed something obvious.
Thank you.
- nello
-
paulh
- Developer
- Posts: 909
- Joined: Thu Feb 06, 2014 6:09 pm
Post
by paulh »
Codes below 127 is the number of adverts found by mythcommflag.
Codes 127 and above are exit error codes. See here for the
exit codes
-
nello
- Junior
- Posts: 27
- Joined: Sun Mar 08, 2015 7:33 pm
Post
by nello »
paulh wrote:Codes 127 and above are exit error codes. See here for the
exit codes
That's exactly what I was looking for!
Thank you.
- nello