agbagb;445975 Wrote: 
> ...flac2mp3.log generated many hundreds of lines thusly:
> 
> Argument "10/32" isn't numeric in multiplication (*) at
> C:\utils\flac2mp3-0.2.7\flac2mp3.pl line 226.
> Argument "10/32" isn't numeric in numeric lt (<) at
> C:\utils\flac2mp3-0.2.7\flac2mp3.pl line 321.

The code is unable to deal with your track tags that are in the format
-track-/-totaltracks-.  The patches below show help.

Find the first occurrence of "# Fix up TRACKNUMBER" (around line 220)
and add the red code below at the shown location (untested: test
first!):

Code:
--------------------
    
  # Fix up TRACKNUMBER
  $changedframes{'TRACKNUMBER'} =~ s/\/.*$//;                 # remove possible 
"/<totaltracks>"
  my $srcTrackNum = $changedframes{'TRACKNUMBER'} * 1;
  if ( $srcTrackNum < 10 ) {
  $changedframes{'TRACKNUMBER'} = sprintf( "%02u", $srcTrackNum );
  }
--------------------


Find the second occurrence of "# Fix up TRACKNUMBER" (around line 320)
and add the red code below at the shown location (untested: test
first!):


Code:
--------------------
    
  # Fix up TRACKNUMBER
  if ( $frame eq "TRACKNUMBER" ) {
  $destframe =~ s/\/.*$//;                        # remove possible 
/<totaltracks>
  if ( $destframe < 10 ) {
  $dest_text = sprintf( "%02u", $destframe );
  }
  }
--------------------


-- 
MrC
------------------------------------------------------------------------
MrC's Profile: http://forums.slimdevices.com/member.php?userid=468
View this thread: http://forums.slimdevices.com/showthread.php?t=66321

_______________________________________________
ripping mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/ripping

Reply via email to