From 726c84674b7425e8b8de9dc62263fc5ce7ce642b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Prout=C3=A9?= Date: Fri, 24 May 2013 20:15:24 +0100 Subject: [PATCH] remove discogs artist disambiguation number --- beetsplug/discogs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 66831ca85..6e979671a 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -113,6 +113,8 @@ class DiscogsPlugin(BeetsPlugin): bits.append(artist['name']) if artist['join']: bits.append(artist['join']) + # Remove discogs artist disambiguation number if needed. + bits = [re.sub(r'\(\d+\)$', '', bit) for bit in bits] artist = ' '.join(bits).replace(' ,', ',') or None return artist, artist_id