File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 27
27
28
28
# Filename field extraction patterns.
29
29
PATTERNS = [
30
- # Useful patterns.
31
- r'^(?P<artist>.+)[\-_](?P<title>.+)[\-_](?P<tag>.*)$' ,
32
- r'^(?P<track>\d+)[\s.\-_]+(?P<artist>.+)[\-_](?P<title>.+)[\-_](?P<tag>.*)$' ,
33
- r'^(?P<artist>.+)[\-_](?P<title>.+)$' ,
34
- r'^(?P<track>\d+)[\s.\-_]+(?P<artist>.+)[\-_](?P<title>.+)$' ,
35
- r'^(?P<title>.+)$' ,
36
- r'^(?P<track>\d+)[\s.\-_]+(?P<title>.+)$' ,
37
- r'^(?P<track>\d+)\s+(?P<title>.+)$' ,
38
- r'^(?P<title>.+) by (?P<artist>.+)$' ,
39
- r'^(?P<track>\d+).*$' ,
30
+ # Useful patterns.
31
+ r'^(?P<artist>.+)[\-_](?P<title>.+)[\-_](?P<tag>.*)$' ,
32
+ r'^(?P<track>\d+)[\s.\-_]+(?P<artist>.+)[\-_](?P<title>.+)[\-_](?P<tag>.*)$' ,
33
+ r'^(?P<artist>.+)[\-_](?P<title>.+)$' ,
34
+ r'^(?P<track>\d+)[\s.\-_]+(?P<artist>.+)[\-_](?P<title>.+)$' ,
35
+ r'^(?P<title>.+)$' ,
36
+ r'^(?P<track>\d+)[\s.\-_]+(?P<title>.+)$' ,
37
+ r'^(?P<track>\d+)\s+(?P<title>.+)$' ,
38
+ r'^(?P<title>.+) by (?P<artist>.+)$' ,
39
+ r'^(?P<track>\d+).*$' ,
40
40
]
41
41
42
42
# Titles considered "empty" and in need of replacement.
You can’t perform that action at this time.
0 commit comments