'Return art URL from google custom search engine
given an album title and interpreter.'

def get(self, album, plugin, paths):

    if (not (album.albumartist and album.album)):
        return
    search_string = ((album.albumartist + ',') + album.album).encode('utf-8')
    response = self.request(self.URL, params={'key': self.key, 'cx': self.cx, 'q': search_string, 'searchType': 'image'})
    try:
        data = response.json()
    except ValueError:
        self._log.debug(u'google:    error    loading    response:    {}'.format(response.text))
        return
    if ('error' in data):
        reason = data['error']['errors'][0]['reason']
        self._log.debug(u'google    fetchart    error:    {0}', reason)
        return
    if ('items' in data.keys()):
        for item in data['items']:
            (yield self._candidate(url=item['link'], match=Candidate.MATCH_EXACT))
