def album_candidates(items, artist, album, va_likely):
 out = []
 if (artist and album):
  try:
   out.extend(mb.match_album(artist, album, len(items)))
  except mb.MusicBrainzAPIError as exc:
   exc.log(log)
 if (va_likely and album):
  try:
   out.extend(mb.match_album(None, album, len(items)))
  except mb.MusicBrainzAPIError as exc:
   exc.log(log)
 out.extend(plugins.candidates(items, artist, album, va_likely))
 return out

def album_candidates ( items , artist , album , va_likely ) : out = [ ] if ( artist and album ) : try : out . extend ( mb . match_album ( artist , album , len ( items ) ) ) except mb . MusicBrainzAPIError as exc : exc . log ( log ) if ( va_likely and album ) : try : out . extend ( mb . match_album ( None , album , len ( items ) ) ) except mb . MusicBrainzAPIError as exc : exc . log ( log ) out . extend ( plugins . candidates ( items , artist , album , va_likely ) ) return out
search for album matches .