From a7fe64c759576b0ddb1de3e94316b3167e21afb1 Mon Sep 17 00:00:00 2001 From: kaliko Date: Fri, 19 Nov 2021 15:26:28 +0100 Subject: [PATCH] Remove bad heuristic to infer artist aliases --- doc/Changelog | 1 + sima/mpdclient.py | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/doc/Changelog b/doc/Changelog index 49f318b..b4b755d 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ MPD_sima v0.18.1.dev0 + * Remove bad heuristic to infer artist aliases -- kaliko Thu, 18 Nov 2021 13:55:12 +0100 diff --git a/sima/mpdclient.py b/sima/mpdclient.py index 0e7988b..23b263e 100644 --- a/sima/mpdclient.py +++ b/sima/mpdclient.py @@ -422,12 +422,6 @@ class MPD(MPDClient): if SimaStr(artist.name) == name and name != artist.name: self.log.debug('add alias for %s: %s', artist, name) artist.add_alias(name) - elif len(library) == 1 and library[0] != artist.name: - new_alias = artist.name - self.log.info('Update artist name %s->%s', artist, library[0]) - self.log.debug('Also add alias for %s: %s', artist, new_alias) - artist = Artist(name=library[0], mbid=artist.mbid) - artist.add_alias(new_alias) # Fetches remaining artists for potential match artists = self._cache['nombid_artists'] else: # not using MusicBrainzIDs -- 2.39.2