]> kaliko git repositories - mpd-sima.git/commitdiff
Remove bad heuristic to infer artist aliases
authorkaliko <kaliko@azylum.org>
Fri, 19 Nov 2021 14:26:28 +0000 (15:26 +0100)
committerkaliko <kaliko@azylum.org>
Fri, 19 Nov 2021 14:26:28 +0000 (15:26 +0100)
doc/Changelog
sima/mpdclient.py

index 49f318b81474781713bd69453cfb55caeda1c0cf..b4b755dc2668e1b88d38c82f256a4c1873571f29 100644 (file)
@@ -1,5 +1,6 @@
 MPD_sima v0.18.1.dev0
 
+ * Remove bad heuristic to infer artist aliases
 
  -- kaliko <kaliko@azylum.org>  Thu, 18 Nov 2021 13:55:12 +0100
 
index 0e7988b10f49b705ce14daa15334b7d27f680816..23b263e1ee92b24460b097034b421b794f4a2be4 100644 (file)
@@ -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