From 49eda4c2fc082d2912c1adcfa0e06c9e3dbe550e Mon Sep 17 00:00:00 2001 From: Colin Patrick McCabe Date: Sat, 3 Apr 2010 01:58:02 -0700 Subject: [PATCH] superrip: Be less verbose in flac and lame programs --- superrip.rb | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/superrip.rb b/superrip.rb index a2071e5..9c5caec 100755 --- a/superrip.rb +++ b/superrip.rb @@ -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 -- 1.6.6.rc1.39.g9a42