]> diplodocus.org Git - flac-archive/commitdiff
Oops, in multi-file mode, all tracks are ripped even with -t option.
authorepg <>
Sat, 28 Oct 2006 09:07:50 +0000 (09:07 +0000)
committerepg <>
Sat, 28 Oct 2006 09:07:50 +0000 (09:07 +0000)
Fixing this also helps lose some duplication.

fa-rip

diff --git a/fa-rip b/fa-rip
index d13776f..cf0e9e8 100755 (executable)
--- a/fa-rip
+++ b/fa-rip
@@ -168,10 +168,10 @@ def rip(device, trackcount, single_file):
     if device == None:
         device = '/dev/cdrom'
 
     if device == None:
         device = '/dev/cdrom'
 
-    argv = ['cdparanoia', '-d', device]
+    argv = ['cdparanoia', '-d', device, '1-' + str(trackcount)]
 
     if single_file:
 
     if single_file:
-        argv.extend(['1-' + str(trackcount), 'wav'])
+        argv.append('wav')
     else:
         argv.append('-B')
 
     else:
         argv.append('-B')