Re: [Easytag-mailing] [PATCH] generate cddb query from song lengths



Daniel Drake <dan reactivated net> writes:

> justus schwartz wrote:
>> is there any interest in a function, that takes the currently marked files and
>> generates a cddb query from them? (certainly only works for complete albums) 
>
> Interesting idea - so you can select a group of untagged and unnamed files, 
> and it will find the exact match on freedb? How reliable is this? (coming from 
> somebody who knows little about freedb internals)

hm, unfortunately it's not that good, the files you select have to be in the
right order (the order on the orignal album) and they have to be complete, such
that the length in seconds is near the lengths on the original cd. than the cddb
server does some sort of fuzzy matching wich works quite good for me. if there
is no match it's quite likely, that some of the files are incomplete, or
something is missing. 

> If the two functions are that similar, it may be worth creating a shared 
> function which both use (makes future maintenance easier).
> [...]
> I'm sure Jerome will correct me if I'm wrong, but I don't think the GTK1 
> version is being worked on any more. You may wish to try writing it against 
> the GTK2 (development) version. I don't think there is any public CVS, but if 
> its any use, I upload all the patches that I send in to here:
> http://www.reactivated.net/patches/easytag/0.31/extras/

ok, i'll change it to work in the gtk2 version and try to clean it up a little
bit.  the gtk2 version by the way has (at least on my system) big problems with filenames
containing non-ascii characters, as for instance french accents and german
umlauts, but i haven't applied all your patches, maybe this will fix it.

ciao
  -justus


-- 
int m,o,O=0;float l,I,_;main(){for(;1840-O;putchar((++O>907&&936>O?61-m:o)
["\rX-#!*X'bc)jrs)inG}sufpodt'''trstrM"]^7))for(o=I=l=0;79-(m=O%80)&&_*l+I*
I<6&&26-++o;I=2*l*I+O/80*.09-1,l=_)_=l*l-I*I-2+m/27.;}




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]