MLUG: [MLUG] fixing CDDB entry using perl
[MLUG] fixing CDDB entry using perl
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I was trying to convert some classical audio CDs to flac format using CDex with an external flac encoder, but it was producing files that contained no data. After awhile I realized that the problem was due to double-quote characters in the song titles. The flac command contained something like -title "%t" such that %t could not contain a double-quote character. I fixed this by converting the quotes to « and » characters (these characters were actually used instead of quotation marks in booklet that came with the CDs). The way I did this was by saving the CDDB entry on my PC and then I ran this on the appropriate files:

perl -pi -e 's/^(TTITLE.+)\"([^\"]*)\"/$1\253$2\273/' filename

If there were two or more quoted sections per title, I had to run that command more than once. It worked very well.

I wanted to send this to the list in case anyone can use it, or in case anyone can tell me a better way.

Mike
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members