mirror of
https://github.com/beetbox/beets.git
synced 2025-12-28 19:42:42 +01:00
Fix errors in key normalization
This commit is contained in:
parent
d014b802aa
commit
0f689d344a
1 changed files with 3 additions and 3 deletions
|
|
@ -184,9 +184,9 @@ class MusicalKey(String):
|
|||
|
||||
def parse(self, key):
|
||||
key = key.lower()
|
||||
for flat, sharp in self.ENHARMONIC:
|
||||
re.sub(flat, sharp, key)
|
||||
re.sub(r'[\W\s]+minor', 'm', key)
|
||||
for flat, sharp in self.ENHARMONIC.items():
|
||||
key = re.sub(flat, sharp, key)
|
||||
key = re.sub(r'[\W\s]+minor', 'm', key)
|
||||
return key.capitalize()
|
||||
|
||||
def normalize(self, key):
|
||||
|
|
|
|||
Loading…
Reference in a new issue