mirror of
https://github.com/beetbox/beets.git
synced 2026-01-07 08:32:06 +01:00
Avoid nested capturing groups
This commit is contained in:
parent
112941b944
commit
bdb7565500
1 changed files with 2 additions and 2 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue