remove discogs artist disambiguation number

This commit is contained in:
César Prouté 2013-05-24 20:15:24 +01:00
parent 1ad5d9eee1
commit 726c84674b

View file

@ -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