mirror of
https://github.com/Jonny007-MKD/OTR-DecodeAll
synced 2025-01-22 08:49:50 +01:00
Added exit codes of multicutmkv
This commit is contained in:
parent
b25f240e4e
commit
fe0a0c70ab
1 changed files with 33 additions and 7 deletions
40
otrDecodeAll
40
otrDecodeAll
|
@ -484,15 +484,41 @@ function funcCut {
|
||||||
success=$?
|
success=$?
|
||||||
case $success in
|
case $success in
|
||||||
0)
|
0)
|
||||||
funcLog 4 "Successfully cut"
|
funcLog 4 "Successfully cut";;
|
||||||
success=1;;
|
1)
|
||||||
5)
|
funcLog 1 "multicutmkv: General error!";;
|
||||||
funcLog 3 "No cutlist found"
|
2)
|
||||||
success=0;;
|
funcLog 1 "multicutmkv: Missing arguments!";;
|
||||||
|
3)
|
||||||
|
funcLog 1 "multicutmkv: Temporary folder could not be created!";;
|
||||||
|
4)
|
||||||
|
funcLog 1 "multicutmkv: Specified file does not exist!";;
|
||||||
|
10)
|
||||||
|
funcLog 3 "multicutmkv: No cutlist found.";;
|
||||||
|
11)
|
||||||
|
funcLog 2 "multicutmkv: Downloading cutlist failed!";;
|
||||||
|
12)
|
||||||
|
funcLog 2 "multicutmkv: Unknown cutlist format!";;
|
||||||
|
20)
|
||||||
|
funcLog 2 "multicutmkv: ffmsindex failed!";;
|
||||||
|
21)
|
||||||
|
funcLog 2 "multicutmkv: mkvmerge failed!";;
|
||||||
|
22)
|
||||||
|
funcLog 2 "multicutmkv: x264 failed!";;
|
||||||
|
6)
|
||||||
|
funcLog 1 "multicutmkv: Error code 6!";;
|
||||||
|
7)
|
||||||
|
funcLog 1 "multicutmkv: Error code 7!";;
|
||||||
|
126)
|
||||||
|
funcLog 1 "multicutmkv: Additional software needed!";;
|
||||||
*)
|
*)
|
||||||
funcLog 1 "An error occured while cutting: $success!"
|
funcLog 1 "An unknown error occured while cutting: $success!";;
|
||||||
success=0;;
|
|
||||||
esac
|
esac
|
||||||
|
if [ $success -eq 0 ]; then
|
||||||
|
success=1
|
||||||
|
else
|
||||||
|
success=0
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue