field = (artist, album, track)
def decorated(func):
def wrapper(*args, **kwargs):
+ if not args[0].database:
+ return func(*args, **kwargs)
cls = args[0]
boolgen = (bl for bl in field)
bl_fun = (cls.database.get_bl_artist,
# Check against the actual string in artist list
if artist.orig in self.artists:
self.log.debug('found exact match for "%s"' % artist)
- return [artist]
+ return [artist.orig]
# Then proceed with fuzzy matching if got nothing
match = get_close_matches(artist.orig, self.artists, 50, 0.73)
if not match: