X-Git-Url: http://git.kaliko.me/?a=blobdiff_plain;f=sima%2Flib%2Fplayer.py;h=feaa4e3fe390960c16ae4057514d445532942dcf;hb=41048503e9b3cf0fdc58e14f35f483889a0b05ae;hp=473c9dfa097dea5f18579c9df0d8dc3d8f03dc89;hpb=1b5cfb4c9187df891bd840b51c044d72ad0077d5;p=mpd-sima.git diff --git a/sima/lib/player.py b/sima/lib/player.py index 473c9df..feaa4e3 100644 --- a/sima/lib/player.py +++ b/sima/lib/player.py @@ -180,8 +180,8 @@ class Player(object): # Regular lowered string comparison if artist.name.lower() == fuzz_art.lower(): found = True + artist.add_alias(fuzz_art) if artist.name != fuzz_art: - artist.add_alias(fuzz_art) self.log.debug('"%s" matches "%s".' % (fuzz_art, artist)) continue # SimaStr string __eq__ (not regular string comparison here) @@ -190,9 +190,6 @@ class Player(object): artist.add_alias(fuzz_art) self.log.info('"%s" quite probably matches "%s" (SimaStr)' % (fuzz_art, artist)) - #else: - #self.log.debug('FZZZ: "%s" does not match "%s"' % - #(fuzz_art, artist)) if found: if artist.aliases: self.log.debug('Found: {}'.format('/'.join(artist.names)))