def google_art(album):
 if (not (album.albumartist and album.album)):
  return
 search_string = ((album.albumartist + ',') + album.album).encode('utf-8')
 response = requests_session.get(GOOGLE_URL, params={'v': '1.0', 'q': search_string, 'start': '0'})
 try:
  results = response.json()
  data = results['responseData']
  dataInfo = data['results']
  for myUrl in dataInfo:
   (yield myUrl['unescapedUrl'])
 except:
  log.debug(u'fetchart: error scraping art page')
  return

def google_art ( album ) : if ( not ( album . albumartist and album . album ) ) : return search_string = ( ( album . albumartist + ',' ) + album . album ) . encode ( 'utf-8' ) response = requests_session . get ( GOOGLE_URL , params = { 'v' : '1.0' , 'q' : search_string , 'start' : '0' } ) try : results = response . json ( ) data = results [ 'responseData' ] dataInfo = data [ 'results' ] for myUrl in dataInfo : ( yield myUrl [ 'unescapedUrl' ] ) except : log . debug ( u'fetchart: error scraping art page' ) return
return art url from google .