X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/956d1d13564d3a830d2ec2e817d95c521857ce3d..1e38739bf12b654a665cb1cd709e8769412fff33:/fa-rip diff --git a/fa-rip b/fa-rip index b7a4fc0..22140a5 100755 --- a/fa-rip +++ b/fa-rip @@ -163,11 +163,17 @@ sub tags { sub rip { my $device = shift; my $trackcount = shift; + my $single_file = shift; + my @output; $device ||= '/dev/cdrom'; + if ($single_file) { + @output = ("1-$trackcount", 'wav'); + } else { + @output = ('-B'); + } - exec('cdparanoia', '-Bd', $device); - # exec prints its own error message so just + exec('cdparanoia', '-d', $device, @output); die; } @@ -185,6 +191,7 @@ sub make_post_processor { MAIN: { my $no_mb; my $post_processor; + my $single_file; my $trackcount = 99; my $help; my $tempdir; @@ -193,6 +200,7 @@ MAIN: { 'device|d=s' => \$CDDEV, 'no-musicbrainz|m' => \$no_mb, 'post-processor|p=s', \$post_processor, + 'single-file|s' => \$single_file, 'tracks|t=i' => \$trackcount, 'help|h|?' => \$help, ) or pod2usage(); @@ -205,7 +213,7 @@ MAIN: { make_post_processor($post_processor); $trackcount = mkcue($CDDEV, $trackcount); tags($CDDEV, $trackcount, $no_mb); - rip($CDDEV, $trackcount); + rip($CDDEV, $trackcount, $single_file); }