mirror of https://gitlab.com/christosangel/sapo
improve duration definition
parent
cb2d04801b
commit
19c7882be4
2
Sapo.sh
2
Sapo.sh
|
@ -241,7 +241,7 @@ do
|
|||
killall mplayer;mplayer "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV &
|
||||
fi
|
||||
BROWSE_NEXT=false
|
||||
DURATION=$(sox "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV -n stat 2>&1 |grep "Length"|sed 's/^.*\: *//')
|
||||
DURATION=$(sox "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV -n stat 2>&1 |grep "Length"|sed 's/^.*\: *//;s/....$//')
|
||||
yad --image "$HOME/git/sapo/sapo.png" \
|
||||
--height=40 --width=400 \
|
||||
--title="Line $ERROR_TEXT_LINE ( of $TOTAL_ERRORS )- $NAME" \
|
||||
|
|
|
@ -71,7 +71,7 @@ do
|
|||
killall mplayer;mplayer "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV &
|
||||
fi
|
||||
BROWSE_NEXT=false
|
||||
DURATION=$(sox "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV -n stat 2>&1 |grep "Length"|sed 's/^.*\: *//')
|
||||
DURATION=$(sox "$DIRECTORY""Sapo_""$NAME"/$ERROR_WAV -n stat 2>&1 |grep "Length"|sed 's/^.*\: *//;s/....$//')
|
||||
yad --image "$HOME/git/sapo/sapo.png" \
|
||||
--height=40 --width=400 \
|
||||
--title="Line $ERROR_TEXT_LINE ( of $TOTAL_ERRORS )- $NAME" \
|
||||
|
|
Loading…
Reference in New Issue