discogs: extra space in ambiguous artists (#289)

This commit is contained in:
Adrian Sampson 2013-05-24 12:31:18 -07:00
parent d877f5e3e8
commit 72f0505744

View file

@ -116,7 +116,7 @@ class DiscogsPlugin(BeetsPlugin):
if artist['join']:
bits.append(artist['join'])
# Remove discogs artist disambiguation number if needed.
bits = [re.sub(r'\(\d+\)$', '', bit) for bit in bits]
bits = [re.sub(r' \(\d+\)$', '', bit) for bit in bits]
artist = ' '.join(bits).replace(' ,', ',') or None
return artist, artist_id