mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 17:33:51 +01:00
Fix Python 2.6 compatibility
This commit is contained in:
parent
46340af6b7
commit
32e1c13510
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ class DiscogsPlugin(BeetsPlugin):
|
|||
# Strip disambiguation number.
|
||||
name = re.sub(r' \(\d+\)$', '', name)
|
||||
# Move articles to the front.
|
||||
name = re.sub(r'^(.*?), (a|an|the)$', r'\2 \1', name, flags=re.I)
|
||||
name = re.sub(r'(?i)^(.*?), (a|an|the)$', r'\2 \1', name)
|
||||
bits.append(name)
|
||||
if artist['join']:
|
||||
bits.append(artist['join'])
|
||||
|
|
|
|||
Loading…
Reference in a new issue