Reverted the modification of UTRACKNUM
authorJesus Climent <mooch@debian.org>
Sun, 15 Jan 2006 16:39:34 +0000 (16:39 +0000)
committerJesus Climent <mooch@debian.org>
Sun, 15 Jan 2006 16:39:34 +0000 (16:39 +0000)
abcde

diff --git a/abcde b/abcde
index 310b7ad..b0a0e5c 100755 (executable)
--- a/abcde
+++ b/abcde
@@ -2301,9 +2301,8 @@ do_cdread ()
                ### FIXME ### Shall we just use -o $FILEARG ??
                flac)
                        # Avoid problems wit math expressions by unpadding the given UTRACKNUM
-                       _TRACKNUM=$UTRACKNUM
-                       UTRACKNUM=$(expr $_TRACKNUM + 0)
-                       nice $READNICE $FLAC -d --cue=${READTRACKNUMS:-$UTRACKNUM.1-$(($UTRACKNUM + 1)).0} "$FILEARG" "$CDROM" ;;
+                       STRIPTRACKNUM=$(expr $UTRACKNUM + 0)
+                       nice $READNICE $FLAC -d -f --cue=${READTRACKNUMS:-$STRIPTRACKNUM.1-$(($STRIPTRACKNUM + 1)).0} "$FILEARG" "$CDROM" ;;
                cdparanoia) 
                        echo "nice $READNICE $CDROMREADER -$CDPARANOIACDROMBUS $CDROM ${READTRACKNUMS:-$UTRACKNUM} "$FILEARG" $REDIR ;;" > /tmp/log
                        nice $READNICE $CDROMREADER -$CDPARANOIACDROMBUS $CDROM ${READTRACKNUMS:-$UTRACKNUM} "$FILEARG" $REDIR ;;