mirror of
https://github.com/beetbox/beets.git
synced 2026-01-03 14:32:55 +01:00
First tentative fix for issue 2738.
Don't ignore anymore filenames such as "01.mp3", instead use the number in the filename as track number.
This commit is contained in:
parent
d932aa4f5c
commit
7132ad094b
1 changed files with 1 additions and 4 deletions
|
|
@ -27,10 +27,6 @@ import six
|
|||
|
||||
# Filename field extraction patterns.
|
||||
PATTERNS = [
|
||||
# "01 - Track 01" and "01": do nothing
|
||||
r'^(\d+)\s*-\s*track\s*\d$',
|
||||
r'^\d+$',
|
||||
|
||||
# Useful patterns.
|
||||
r'^(?P<artist>.+)-(?P<title>.+)-(?P<tag>.*)$',
|
||||
r'^(?P<track>\d+)\s*-(?P<artist>.+)-(?P<title>.+)-(?P<tag>.*)$',
|
||||
|
|
@ -45,6 +41,7 @@ PATTERNS = [
|
|||
r'^(?P<track>\d+)\s*-\s*(?P<title>.+)$',
|
||||
r'^(?P<track>\d+)\s(?P<title>.+)$',
|
||||
r'^(?P<title>.+) by (?P<artist>.+)$',
|
||||
r'^(?P<track>\d+).*$',
|
||||
]
|
||||
|
||||
# Titles considered "empty" and in need of replacement.
|
||||
|
|
|
|||
Loading…
Reference in a new issue