Revert to optional capturing group

This commit is contained in:
Rahul Ahuja 2019-09-15 16:24:32 -07:00
parent a5fadf0dcc
commit 01e8643cec

View file

@ -38,7 +38,7 @@ class DeezerPlugin(MetadataSourcePlugin, BeetsPlugin):
track_url = 'https://api.deezer.com/track/'
id_regex = {
'pattern': r'(^|deezer\.com/)([a-z]*/)?({}/)([0-9]*)',
'pattern': r'(^|deezer\.com/)(\w+/)?({}/)?(\d+)',
'match_group': 4,
}