Avoid nested capturing groups

This commit is contained in:
Rahul Ahuja 2019-09-07 00:48:19 -07:00
parent 112941b944
commit bdb7565500

View file

@ -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):