]> diplodocus.org Git - flac-archive/commitdiff
Try counting audio track lines in the cue file for the number of the
authorepg <>
Tue, 13 Apr 2004 04:03:49 +0000 (04:03 +0000)
committerepg <>
Tue, 13 Apr 2004 04:03:49 +0000 (04:03 +0000)
last track instead of $discid[2].  This seems to work better (so far)
for discs with data tracks.

fa-rip

diff --git a/fa-rip b/fa-rip
index 55b2fb2..a97e90c 100755 (executable)
--- a/fa-rip
+++ b/fa-rip
@@ -33,4 +33,4 @@ eval fa-tags $discid &
 cdrdao read-toc --device ${CDDEV} --driver generic-mmc toc
 toc2cue toc cue &
 
-exec cdparanoia -d ${CDDEV} 1-$discid[2] wav
+exec cdparanoia -d ${CDDEV} 1-$(grep -c 'TRACK.*AUDIO' cue) wav