def try_search_artist_album (self, key, store, callback, *args):
        album = key.get_field("album")
        artist = key.get_field("artist")

        if not album or not artist:
            print("artist or album information missing")
            callback(True)
            return

        query = MUSICBRAINZ_SEARCH_QUERY % (artist.lower(), album.lower())
        url = MUSICBRAINZ_SEARCH_URL % (rb3compat.quote(query, safe=':'),)

        loader = rb.Loader()
        loader.get_url(url, self.get_release_cb, (key, store, callback, args))
 def _uri(self):
     return '%s/%s/%s' % (api_uri, self._uri_name, rb3compat.quote(rb3compat.unicodeencode(self._id, 'utf-8')))
    def _uri(self):
        import urllib

        return "%s/%s/%s" % (api_uri, self._uri_name, rb3compat.quote(rb3compat.unicodeencode(self._id, "utf-8")))