From 0e54174dd7f76b47252fba479222593024cbce55 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Fri, 27 Mar 2009 18:00:23 -0400 Subject: [PATCH] Fixed -0 option in tagfromfilename --- cdripper | 2 +- tagfromfilename | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cdripper b/cdripper index 3b1da81..6e45817 100755 --- a/cdripper +++ b/cdripper @@ -41,7 +41,7 @@ $HELP_MSG = "# CD Ripper v$VERSION\n\tusage: cdripper [--no-cddb] [-a] " . "-o [num]:\tOffset track numbers by num. The first track will be num+1\n" . "-y:\t\tDon't prompt for user confirmation of CDDB information\n\t\t(assume defaults are okay).\n" . "--no-cddb:\tDon't use CDDB. Prompt the user for all information.\n" . - "-T:\t\tWrite uppercase tag names. Passes -T to tagfromfilename"; + "-T:\t\tWrite uppercase tag names. Passes -T to tagfromfilename\n"; $CDPARANOIA_FORMAT = 'track*.cdda'; $TRACK_ZERO = 'track00'; diff --git a/tagfromfilename b/tagfromfilename index 99bf725..b1c1c06 100755 --- a/tagfromfilename +++ b/tagfromfilename @@ -28,7 +28,7 @@ # 0.1: initial implementation $VERSION = "0.2.4"; -$HELP_MSG = "Vorbiscomment from Filename $VERSION\n\tusage: vcfromfilename [options] \n\nValid options:\n\t-n\tOnly set the track numbers\n\t-0\tPreserve leading 0s in track numbers\n\t-T: Write tag names (not tag content) in all caps"; +$HELP_MSG = "Vorbiscomment from Filename $VERSION\n\tusage: vcfromfilename [options] \n\nValid options:\n\t-n\tOnly set the track numbers\n\t-0\tPreserve leading 0s in track numbers\n\t-T: Write tag names (not tag content) in all caps\n"; chomp($COMMENTFILENAME = '/tmp/vcfromfilename-' . `whoami`); @@ -100,7 +100,7 @@ foreach (@ARGV) # Now get the track number my $tracknum = $_; $tracknum =~ s/.*-(\d{2})-.*/\1/; - if (!$extrazeros) { $tracknum =~ s/\b0*//; } # removing leading zeros + if (!$extrazero) { $tracknum =~ s/\b0*//; } # removing leading zeros $tracknum = formatName($tracknum, 'tracknumber=', $captagnames); print COMMENTFILE $tracknum;