diff --git a/beetsplug/discogs.py b/beetsplug/discogs.py index 9c7a40058..0ac4a55a5 100644 --- a/beetsplug/discogs.py +++ b/beetsplug/discogs.py @@ -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'])