fromfilename: Move <title> regex to the very end

since it's the least significant as discussed in the PR's thread.
This commit is contained in:
J0J0 Todos 2022-12-28 09:30:21 +01:00
parent 2839302d53
commit 5461ddf9f2

View file

@ -30,10 +30,10 @@ PATTERNS = [
r'^(?P<artist>.+)[\-_](?P<title>.+)$',
r'^(?P<track>\d+)[\s.\-_]+(?P<artist>.+)[\-_](?P<title>.+)$',
r'^(?P<track>\d+)[\s.\-_]+(?P<title>.+)$',
r'^(?P<title>.+)$',
r'^(?P<track>\d+)\s+(?P<title>.+)$',
r'^(?P<title>.+) by (?P<artist>.+)$',
r'^(?P<track>\d+).*$',
r'^(?P<title>.+)$',
]
# Titles considered "empty" and in need of replacement.