Fixed #32 (Unicode NFC normalizing track names)

This commit is contained in:
RemixDev 2020-08-27 11:37:30 +02:00
parent e18a0bf410
commit 9828da7429
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env python3
import re
from os.path import sep as pathSep
from unicodedata import normalize
bitrateLabels = {
15: "360 HQ",
@ -17,6 +18,7 @@ bitrateLabels = {
def fixName(txt, char='_'):
txt = str(txt)
txt = re.sub(r'[\0\/\\:*?"<>|]', char, txt)
txt = normalize("NFC", txt)
return txt
def fixEndOfData(bString):