New post: blog: Server update, 2014-05-26 <http://blog.musicbrainz.org/2014/05/26/server-update-2014-05-26/>
2014-05-26 14636, 2014
reosarevok joined the channel
2014-05-26 14650, 2014
Schisma______ joined the channel
2014-05-26 14651, 2014
murk_ joined the channel
2014-05-26 14639, 2014
simukis_ joined the channel
2014-05-26 14634, 2014
simukis_ joined the channel
2014-05-26 14648, 2014
finarfin joined the channel
2014-05-26 14602, 2014
Nyanko-sensei joined the channel
2014-05-26 14619, 2014
reosarevok joined the channel
2014-05-26 14627, 2014
zas joined the channel
2014-05-26 14640, 2014
xram joined the channel
2014-05-26 14630, 2014
reosarevok joined the channel
2014-05-26 14624, 2014
reosarevok_ joined the channel
2014-05-26 14627, 2014
reosarevok_ joined the channel
2014-05-26 14625, 2014
kepstin-laptop__ joined the channel
2014-05-26 14629, 2014
CallerNo6 joined the channel
2014-05-26 14638, 2014
reosarevok__ joined the channel
2014-05-26 14651, 2014
madmouser1 joined the channel
2014-05-26 14651, 2014
murk_ joined the channel
2014-05-26 14631, 2014
androidbruce has left the channel
2014-05-26 14611, 2014
simukis_ joined the channel
2014-05-26 14617, 2014
gioele joined the channel
2014-05-26 14629, 2014
gioele joined the channel
2014-05-26 14619, 2014
KillDaBOB
the CAA is out to get me. looking at the stats page, the red line stopped being a factor when i went to bed. as soon as I woke up, it was back. silly servers plotting against me…
2014-05-26 14653, 2014
v6lur joined the channel
2014-05-26 14601, 2014
CallerNo6 joined the channel
2014-05-26 14611, 2014
kepstin suspects it has to do more with the timezones that people who use archive.org servers live in than with you specifically :)
2014-05-26 14643, 2014
KillDaBOB
well, yeah. but I can think I’m special for a minute, right? heh.
2014-05-26 14601, 2014
JesseW joined the channel
2014-05-26 14621, 2014
xplt joined the channel
2014-05-26 14644, 2014
reosarevok_ joined the channel
2014-05-26 14626, 2014
simukis_ joined the channel
2014-05-26 14650, 2014
reosarevok joined the channel
2014-05-26 14628, 2014
reosarevok_ joined the channel
2014-05-26 14630, 2014
spinza joined the channel
2014-05-26 14621, 2014
zas_ joined the channel
2014-05-26 14621, 2014
misterswag joined the channel
2014-05-26 14602, 2014
nikki__ joined the channel
2014-05-26 14606, 2014
nikki__ has left the channel
2014-05-26 14604, 2014
spinza joined the channel
2014-05-26 14640, 2014
spinza_ joined the channel
2014-05-26 14641, 2014
gioele joined the channel
2014-05-26 14601, 2014
mat_ joined the channel
2014-05-26 14638, 2014
spinza joined the channel
2014-05-26 14620, 2014
reosarevok_ joined the channel
2014-05-26 14636, 2014
SultS joined the channel
2014-05-26 14608, 2014
reosarevok__ joined the channel
2014-05-26 14608, 2014
JesseW joined the channel
2014-05-26 14632, 2014
zas_ joined the channel
2014-05-26 14631, 2014
spinza joined the channel
2014-05-26 14648, 2014
MBach joined the channel
2014-05-26 14658, 2014
MBach
hi
2014-05-26 14614, 2014
JesseW
MBach: hello. did you have a question?
2014-05-26 14626, 2014
MBach
true
2014-05-26 14614, 2014
JesseW
?
2014-05-26 14615, 2014
MBach
what is the best way to use the musicbrainz's webservice
2014-05-26 14624, 2014
MBach
in order to get all cover art
2014-05-26 14643, 2014
MBach
from a list like "artist -> releases"
2014-05-26 14656, 2014
JesseW
all the cover art for a particular album, or a particular artist, or?
2014-05-26 14628, 2014
MBach
to mimize the number of calls to the webservice, from a particular artist
2014-05-26 14638, 2014
MBach
and let's say, 5 albums on 10
2014-05-26 14652, 2014
kepstin
do you want just the front covers or all images?
2014-05-26 14656, 2014
MBach
(i am making an audio player by the way))
2014-05-26 14606, 2014
kepstin
do you want all versions of releases, or just a representative cover?
MBach: ok, in that case you'd use a release group browse request by artist mbid to get the release group mbids, then get the cover art image by release group mbid
2014-05-26 14624, 2014
kepstin
the release group browse request is paginated, and can get up to (I think) 50 or 100 release groups per request
2014-05-26 14652, 2014
kepstin
if you have a list of specific releases that you want cover art for, it's a bit more tricky
2014-05-26 14609, 2014
MBach
hmm
2014-05-26 14618, 2014
MBach
that's what i thought
2014-05-26 14618, 2014
kepstin
but in that case, you should already have release or release group mbids, and no queries are needed
2014-05-26 14627, 2014
kepstin
so not actually more tricky after all :)
2014-05-26 14630, 2014
MBach
it seems not possible to get all with one request
2014-05-26 14605, 2014
kepstin
(if you don't already have mbids, but are looking up e.g. by name, then you're gonna have trouble)
2014-05-26 14616, 2014
MBach
that's right :D
2014-05-26 14653, 2014
kepstin
in that case, you'd be doing a search request for each pair of (artist,release group) to attempt to get an mbid, then using that mbid to get cover art.
2014-05-26 14652, 2014
kepstin
ideally, you should store the mbid for things once you've done the lookup once so that you don't have to do it again... we have standard metadata tags to store this info in files, of course.
2014-05-26 14655, 2014
MBach
i read in the wiki that I shouldn't not do more than 1 call per second
2014-05-26 14633, 2014
kepstin
yes, 1 call per second per ip address is enforced by the rate limiter on the api
2014-05-26 14609, 2014
kepstin
(it's actually 10 calls per 11 seconds, but staying at the 1/1 rate will avoid issues completely)
2014-05-26 14631, 2014
kepstin
er, 11 calls per 10 seconds?
2014-05-26 14635, 2014
kepstin
whatever. 1/1 is safe :)
2014-05-26 14657, 2014
kepstin
most of the people like me who are avid musicbrainz users will have files where the metadata tags were saved by musicbrainz picard, meaning that the MBID tags are in the file. In this case, you can get coverart without needing to do any api requests at all.
so you'll want to make fairly heavy use of caching - e.g. look up the mbid once when adding an album and save the cover image locally, so you don't have to re-query all the time.
2014-05-26 14629, 2014
MBach
yep, I want to create a small plugin which grabs missing pictures
2014-05-26 14637, 2014
kepstin
you're writing your own player, and running foobar2000 in the mean time? :)
2014-05-26 14648, 2014
MBach
yep, because mine isn't finished =)
2014-05-26 14605, 2014
MBach
and foobar rocks
2014-05-26 14610, 2014
kepstin
yours looks more finished than mine ;)
2014-05-26 14659, 2014
kepstin
hmm.
2014-05-26 14634, 2014
kepstin is kind of curious how well the search would work for the stuff you have - our coverage of romanized/transliterated versions of japanese releasese is a bit iffy
note that you have to do some escaping of the artist and release fields there, to fit the lucene search syntax. Just a few special characters to escape, I think.
the search will almost always give you back multiple responses, and you get a score with each one; based on the score and maybe some local comparisons, you can probably decide if there's a good enough match to use for cover art.
2014-05-26 14621, 2014
MBach
yep
2014-05-26 14640, 2014
MBach
sometimes using google nice too ;)
2014-05-26 14650, 2014
MBach
just type in what you want
2014-05-26 14612, 2014
MBach
and you have the right cover !
2014-05-26 14615, 2014
kepstin
yeah, but that's not super useful to programattically find cover art :)