X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/1f9496c729e649cedae547ce6e3de04b052bb5e7..32851f8a26bc6a015c5ea215330cc1ea0c743608:/fa-flacd diff --git a/fa-flacd b/fa-flacd index 37e79a0..5f3ab7f 100755 --- a/fa-flacd +++ b/fa-flacd @@ -10,7 +10,7 @@ B, B, B - archive CDs to single FLAC files B [B<-jv>] -B +B [B<-d> I] [B<-t> I] B I @@ -86,12 +86,7 @@ sub flac { chdir($dir) or die("chdir($dir): $!"); $outfile = "$album"; - for ($outfile) { - s/\//_/g; - s/:/_/g; - s/'/_/g; - s/"/_/g; - } + $outfile =~ s/\//_/g; verbose("Running flac\n"); $status = system('flac', '-o', "../$artist/$outfile.flac-tmp", @@ -110,8 +105,6 @@ sub flac { verbose("Cleaning up $dir\n"); unlink('using-tags') or die("unlink(using-tags): $!"); unlink('cue') or die("unlink(cue): $!"); - rename('toc', "../$artist/$outfile.toc") - or die("rename(toc, ../$artist/$outfile.toc): $!"); rename('log', "../$artist/$outfile.log") or die("rename(log, ../$artist/$outfile.log): $!"); chdir('..') or die("chdir(..): $!"); @@ -256,10 +249,16 @@ artist directory (and named by album) and the ID directory is removed. =head2 FA-RIP B uses C to create a directory for storage of its -intermediate files. It uses C to create the "cue" file and +intermediate files. It uses C to create the "cue" file and then passes the number of tracks (from the "cue" file) as command-line -arguments to B. Finally, it execs C to rip -the CD to the "wav" file. +arguments to B. + +If B<-t> I is specified, that number is used instead of +counting tracks in the "cue" file, and is also passed to C +to ensure that only that number of tracks is listed in the "cue" file. +This is handy if the CD has stupid data tracks. + +Finally, it execs C to rip the CD to the "wav" file. In order for this CD to be processed by B, the user must create a "tags" file. This is usually done by renaming one of the