def item_candidates(item, artist, title):
 out = []
 if (artist and title):
  try:
   out.extend(mb.match_track(artist, title))
  except mb.MusicBrainzAPIError as exc:
   exc.log(log)
 out.extend(plugins.item_candidates(item, artist, title))
 return out

def item_candidates ( item , artist , title ) : out = [ ] if ( artist and title ) : try : out . extend ( mb . match_track ( artist , title ) ) except mb . MusicBrainzAPIError as exc : exc . log ( log ) out . extend ( plugins . item_candidates ( item , artist , title ) ) return out
search for item matches .