ceejay wrote:
> OK, so I needed to do a batch transcode of my FLAC collection to MP3. 
> No problem - I'll pick up Robin's flac2mp3 script and use that.
> 
> Ah, but.... in my FLAC files I use multiple tag values (mostly but not
> exclusively for Genres) with a semicolon separator.  I'm pretty sure
> that the players I intend to use won't like that in the mp3 files.  All
> I want is the first value carried over to the mp3.
> 
> I'm not sure if there was a better way, but what I ended up doing was
> patching the script file to add the line
> 
> $frameValue =~ s/;.*$//;
> 
> within the fixUpFrame routine (just after the line that I think strips
> trailing blanks).  This has the effect of stripping all but the first
> tag value, which was what I wanted.
> 
> Was there a better way?

I plan to add this functionality.

I want to support copying multiple tags (in flac files) into a single 
tag in mp3 files.

FLAC files can hold multiple copies of the same tag, or multiple values 
inside one tag (e.g. semi-colon separated)

MP3 files can have multiple tags in a frame (NULL-separated, I think) or 
multiple values inside one tag.

What you're saying is that you want to just use the first value of 
multiple values from your flac files and store it as a single value in 
your mp3 files.

You're patch will work, but this is probably better:

if ($frameValue =~ /([^;]+)/) {
     $frameValue = $1;
}


R.

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

Reply via email to