zelfratz version 0.1

1 view
Skip to first unread message

esc

unread,
Mar 26, 2009, 5:07:15 PM3/26/09
to digitaltunesapi
Hi,

i "released" version 0.1 of my tool today. If you are interested you
will find it at:

http://github.com/esc/zelfratz/tree/master

Now that thats out of the way, i might actually get around to buying
some choons ;)

I have 2 further comments:

1) I can search labels by the internal name, but not the artists.

2) The way i parse the xml now is a bit hacky, maybe if i had a DTD it
would be easier to marshall/unmarshall the xml.

Otherwise thank you so much for making digital-tunes and the api, its
really a great service far ahead of the competition!

V-

will-c

unread,
Mar 27, 2009, 6:51:30 AM3/27/09
to digitaltunesapi
Hey cool stuff :D

> 1) I can search labels by the internal name, but not the artists.

Not sure what you mean here, as far as i know there is no way to
search for labels by internal name, calls to /labels/ query using
name.

2) The way i parse the xml now is a bit hacky, maybe if i had a DTD it
would be easier to marshall/unmarshall the xml.

Not sure if a DTD would make your life much easier... Im sure there
must be all kinds of nice Python xml parsing libs out there, but im
not a Python guy so wouldnt know. I have played around in the past
with roxml http://roxml.rubyforge.org/ for ruby, i guess you could use
something like that to build nice objects out of the xml returned.

Tell us if there are any features you would like added btw...

esc

unread,
Mar 27, 2009, 4:21:06 PM3/27/09
to digitaltunesapi
Hi,

i'll just answer the first part in this thread for now, as i am still
looking into the other one :-)

Let me illustrate what i mean with an example:

We will use:

<artist internal-name="black_sun_empire">Black sun empire</artist>

and

<name>Digital Venom</name>
<internal-name>digital_venom</internal-name>

So for the artist, the search:

http://api.digital-tunes.net/releases/by_artist/black_sun_empire?key=666

will fail. and only:

http://api.digital-tunes.net/releases/by_artist/black%20sun%20empire?key=666

will be successful.

So a search by internal name will fail.

For labels we have a different story, in this case the following two
api requests will be successful:

http://api.digital-tunes.net/releases/by_label/digital%20venom?key=666

http://api.digital-tunes.net/releases/by_label/digital_venom?key=666

ergo: both the name and the internal-name can be used.

I hope this makes it clear

As far as features i'll ponder on it for a while, but until now i'm a
happy chappy!

cheers

esc


On Mar 27, 11:51 am, will-c <william.coa...@gmail.com> wrote:
> Hey cool stuff :D
>
> > 1) I can search labels by the internal name, but not the artists.
>
> Not sure what you mean here, as far as i know there is no way to
> search for labels by internal name, calls to /labels/ query using
> name.
>
> 2) The way i parse the xml now is a bit hacky, maybe if i had a DTD it
> would be easier to marshall/unmarshall the xml.
>
> Not sure if a DTD would make your life much easier... Im sure there
> must be all kinds of nice Python xml parsing libs out there, but im
> not a Python guy so wouldnt know. I have played around in the past
> with roxmlhttp://roxml.rubyforge.org/for ruby, i guess you could use
Reply all
Reply to author
Forward
0 new messages