mirror of
https://github.com/beetbox/beets.git
synced 2025-12-26 02:24:33 +01:00
remove discogs artist disambiguation number
This commit is contained in:
parent
1ad5d9eee1
commit
726c84674b
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue