#musicbrainz

/

      • robmorrissey joined the channel
      • 2014-05-26 14606, 2014

      • robmorrissey joined the channel
      • 2014-05-26 14657, 2014

      • rtv joined the channel
      • 2014-05-26 14640, 2014

      • JesseW joined the channel
      • 2014-05-26 14629, 2014

      • JesseW joined the channel
      • 2014-05-26 14605, 2014

      • peaveyman joined the channel
      • 2014-05-26 14634, 2014

      • CallerNo7 joined the channel
      • 2014-05-26 14645, 2014

      • JesseW joined the channel
      • 2014-05-26 14655, 2014

      • xplt joined the channel
      • 2014-05-26 14604, 2014

      • STalKer-X joined the channel
      • 2014-05-26 14614, 2014

      • CallerNo6 joined the channel
      • 2014-05-26 14623, 2014

      • zas joined the channel
      • 2014-05-26 14623, 2014

      • hawke joined the channel
      • 2014-05-26 14651, 2014

      • Gentlecat joined the channel
      • 2014-05-26 14607, 2014

      • demonimin joined the channel
      • 2014-05-26 14649, 2014

      • simukis_ joined the channel
      • 2014-05-26 14632, 2014

      • simukis_ joined the channel
      • 2014-05-26 14606, 2014

      • mb-chat-logger
        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?
      • 2014-05-26 14619, 2014

      • MBach
        i assume that the representative cover is enough
      • 2014-05-26 14629, 2014

      • JesseW
        MBach: have you read http://wiki.musicbrainz.org/CAA ?
      • 2014-05-26 14646, 2014

      • MBach
        yep i have discovered it a few hours ago
      • 2014-05-26 14653, 2014

      • MBach
        i have started to play with the api
      • 2014-05-26 14658, 2014

      • kepstin
        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.
      • 2014-05-26 14618, 2014

      • kepstin
        but in general I suppose that doesn't work :)
      • 2014-05-26 14628, 2014

      • MBach
        this is what i have done so far : http://imgur.com/8uwSiK7
      • 2014-05-26 14658, 2014

      • MBach
        sorry kepstin I always make my softwares :D
      • 2014-05-26 14630, 2014

      • kepstin
        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
      • 2014-05-26 14656, 2014

      • MBach
        i could help for french :D
      • 2014-05-26 14605, 2014

      • MBach
        but not for japanese
      • 2014-05-26 14649, 2014

      • kepstin
        e.g. I see you have some Susumu Hiarasawa; for her 2012 release, we only have the japanese titles: http://musicbrainz.org/release-group/54e6c2d5-8d2…
      • 2014-05-26 14657, 2014

      • kepstin
        although we don't have cover art for that anyways :/
      • 2014-05-26 14635, 2014

      • MBach
        so, let's back to work for just one pair (artist,album) right now
      • 2014-05-26 14642, 2014

      • MBach
        one little step at a time
      • 2014-05-26 14612, 2014

      • kepstin
      • 2014-05-26 14641, 2014

      • kepstin
        you'll be doing a search for release groups, attempting to match the artist and album title fields
      • 2014-05-26 14617, 2014

      • MBach
        at work I'm more a Python guy, so dealing with HTTP Request and XML is a bit tricky
      • 2014-05-26 14643, 2014

      • MBach
        but thanks to Qt
      • 2014-05-26 14650, 2014

      • MBach
        (it's so awesome)
      • 2014-05-26 14604, 2014

      • kepstin
        picard - the musicbrainz tagger software - uses PyQT :)
      • 2014-05-26 14639, 2014

      • Mineo always thought susumu hirasawa is a guy
      • 2014-05-26 14652, 2014

      • kepstin didn't actually look at the gender of the artist...
      • 2014-05-26 14607, 2014

      • kepstin
        anyways, the type of query that you'd be doing would look like http://musicbrainz.org/ws/2/release-group/?query=…
      • 2014-05-26 14640, 2014

      • kepstin
        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.
      • 2014-05-26 14624, 2014

      • Mineo
      • 2014-05-26 14645, 2014

      • kepstin
        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 :)
      • 2014-05-26 14642, 2014

      • kepstin
        anyways, from that musicbrainz search, if you pick a release group, you just throw the ID into a cover art URL of the format http://coverartarchive.org/release-group/d77f1ef9… and download the image
      • 2014-05-26 14605, 2014

      • kepstin
        er, and apparently that one doesn't work
      • 2014-05-26 14608, 2014

      • kepstin pokes a bit
      • 2014-05-26 14645, 2014

      • kepstin
        yep, then you just hit the problem that our cover art coverage isn't superb :)
      • 2014-05-26 14602, 2014

      • MBach
        arf
      • 2014-05-26 14623, 2014

      • MBach
        so google was a not so bad idea, finally
      • 2014-05-26 14652, 2014

      • kepstin
        aside from the fact that programatically doing google searches is a real pain, they have pretty heavy api usage limits iirc.
      • 2014-05-26 14629, 2014

      • kepstin
        and if google doesn't find any good images or doesn't have a matching image, you don't really have anyway to tell.
      • 2014-05-26 14643, 2014

      • MBach
        i am making open source software, so I'd rather use open source from top to bottom
      • 2014-05-26 14603, 2014

      • MBach
        like TagLib
      • 2014-05-26 14604, 2014

      • kepstin
      • 2014-05-26 14628, 2014

      • kepstin
        (and if you open that image, you'll note that it redirects a couple times before hitting the real location)
      • 2014-05-26 14652, 2014

      • MBach
        nice