On Mon, 30 Jun 2003 12:44:29 -0500
Adam Luter <[EMAIL PROTECTED]> wrote:

> Which, as it happens, is what my program YaRET wants, because it is a
> batch program (and user interaction is not really figured into that sort
> of design).  So right now YaRET would have to parse the genre list
> (gotten from the lame command line option) and match the user specified
> genre (which is often from the very inaccurate CDDB database).  YaRET
> could then go around lame and set an appropriate default genre, if the
> user has set an invalid one.  Perhaps it can be appreciated (esp. since
> YaRET supports several encoders) that this isn't the best solution for
> YaRET.

What about using soundex or something similar to find the "right" genre
and fall back to a default one if there's no genre which sounds
similar? This isn't something we can provide with very few code in lame,
but AFAIK there's a perl module which implements soundex...

> It's not that it's hard to add this functionality (heck YaRET's written
> in -Perl-), but I would want it abstracted feature.  And as an abstracted
> feature it seems -very- akward.
> 
> Now of course, I should go back to the rest of the world.  In which case
> lame aborting is the best solution, I agree.  But there are probably
> other front-ends to lame that -would- like to have a similar 'ignore tag
> errors' option that turns off this abortive behavior; if only to simplify
> user interaction.

What about wrapping libmp3lame into a perl module (like I did with
python)? This would make your program much more flexible.

> But, it is up to you.  As it is, I (personally) don't use lame for
> anything where I care about having the genre set.  But as the maintainer
> of YaRET my opinion is that lame quietly ignoring an invalid genre is a
> nice feature.

I don't know much perl (I can distinguish it from other languages), but
what about somethin like  "system($command_line_with_user_genre) or
system($command_line_with_default_genre) or die;"?

Bye,
Alexander.

-- 
      ...and that is how we know the Earth to be banana-shaped.

http://www.Leidinger.net                       Alexander @ Leidinger.net
  GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
_______________________________________________
mp3encoder mailing list
[EMAIL PROTECTED]
http://minnie.tuhs.org/mailman/listinfo/mp3encoder

Reply via email to