superrip: Be less verbose in flac and lame programs
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sat, 3 Apr 2010 08:58:02 +0000 (01:58 -0700)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Sat, 3 Apr 2010 08:58:02 +0000 (01:58 -0700)
superrip.rb

index a2071e5..9c5caec 100755 (executable)
@@ -61,14 +61,16 @@ def audiorip(tnum, track)
 
   # TODO: spawn a thread to do this stuff in the background
   FileUtils.mkdir_p(track.flac_dir, $fu_args)
-  my_system("flac -f '#{track.wav_file_name}' --output-name='#{track.flac_file_name}'")
+  my_system("flac -f '#{track.wav_file_name}' \
+--output-name='#{track.flac_file_name}' &>/dev/null")
   begin
-    my_system("flac --test '#{track.flac_file_name}'")
+    my_system("flac --test '#{track.flac_file_name}' &>/dev/null")
   rescue
     raise "failed to encode #{track.flac_file_name}"
   end
   FileUtils.mkdir_p(track.mp3_dir, $fu_args)
-  my_system("lame -q 1 -b 192 '#{track.wav_file_name}' '#{track.mp3_file_name}'")
+  my_system("lame -q 1 -b 192 '#{track.wav_file_name}' \
+'#{track.mp3_file_name}' &>/dev/null")
   FileUtils.rm_f(track.wav_file_name, $fu_args)
 end