mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 20:42:37 +01:00
We only need to strip the disambiguation from artist names, not the join strings.
This commit is contained in:
parent
72f0505744
commit
3f4e194c41
1 changed files with 2 additions and 3 deletions
|
|
@ -112,11 +112,10 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
for artist in artists:
|
||||
if not artist_id:
|
||||
artist_id = artist['id']
|
||||
bits.append(artist['name'])
|
||||
# Strip disambiguation number from artist name.
|
||||
bits.append(re.sub(r' \(\d+\)$', '', 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