Avoid nested capturing groups
@@ -39,8 +39,8 @@ class DeezerPlugin(APIAutotaggerPlugin, BeetsPlugin):
track_url = 'https://api.deezer.com/track/'
id_regex = {
- 'pattern': r'(^|deezer\.com/([a-z]*/)?{}/)([0-9]*)',
- 'match_group': 3,
+ 'pattern': r'(^|deezer\.com/)([a-z]*/)?({}/)([0-9]*)',
+ 'match_group': 4,
}
def __init__(self):
