X-Git-Url: https://diplodocus.org/git/flac-archive/blobdiff_plain/1f9496c729e649cedae547ce6e3de04b052bb5e7..b22eaf65267e9b1c3bfacfd6e81462e183a158c9:/fa-flacd diff --git a/fa-flacd b/fa-flacd index 37e79a0..ad0ecd3 100755 --- a/fa-flacd +++ b/fa-flacd @@ -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(..): $!");