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