]> diplodocus.org Git - flac-archive/blobdiff - fa-rip
Ah-hah! I have finally found the bug that caused my mp3s to include a
[flac-archive] / fa-rip
diff --git a/fa-rip b/fa-rip
index b45b655..c331648 100755 (executable)
--- a/fa-rip
+++ b/fa-rip
@@ -30,11 +30,10 @@ fi
 dir=$(mktemp -d flac-archive.XXXXXXXXXX)
 cd ${dir}
 
-cdrdao read-toc --device ${CDDEV} --driver generic-mmc toc
-toc2cue toc cue
+mkcue ${CDDEV} > cue
 
 trackcount=$(grep -c 'TRACK.*AUDIO' cue)
 
 fa-tags ${trackcount}
 
-exec cdparanoia -d ${CDDEV} 1-$(grep -c 'TRACK.*AUDIO' cue) wav
+exec cdparanoia -d ${CDDEV} 1-${trackcount} wav