Zach Beane wrote: > > Jeremy Smith <[EMAIL PROTECTED]> writes: > > > I've just been dusting off some code I wrote in '02 which still works > > fine, and I ported it to Lisp in part of this afternoon for fun. > > > > Basically, you give it a list of track lengths (in seconds) and it > > generates a couple of hashes which are used to identify the CD, then > > checks FreeDB (or any CDDB clone) using the web interface (eg, a normal > > URL) and then you are given an exact match with track numbers/names, or > > a list of inexact matches where you need to specify which one you'd like > > (probably just return a list of IDs). > > See also: cddb.lisp in rip-l. > > It's pretty application-specific and incomplete, though. > > Zach
Looks pretty good! The protocol stuff is pretty much what I was working on all those years ago. I suppose I can't expect something I did 3 years ago to still be original. Your CDDB code and mine do pretty much the same thing, but that's my fault for not researching it enough. I've now finished the code for getting MP3 track lengths, and written a little heuristic to sort the filenames (assuming the filename numberings are in different formats, such as 3-digit CD and track ID's, etc) and all I have to do now is rename the tracks (I'll use 'run-program mv' for now ;-) One of these days I'll just use your CDDB code and replace mine, but for now I'm too proud to let 2 hours work go to waste. :-) Cheers, Jeremy. -- | Jeremy Smith BSc (Hons) | Chief Scientist, Decompiler Technologies | <insert title here> at San Fran Systems | Member, British Computer Society | "And it's not just people you have to worry about. Programs write programs too!" - Paul Graham, On Lisp _______________________________________________ Gardeners mailing list [email protected] http://www.lispniks.com/mailman/listinfo/gardeners
