1
0
mirror of https://github.com/thebaer/cdr.git synced 2024-11-15 01:31:01 +00:00

Transliterate track info to ASCII on clean

This commit is contained in:
Matt Baer 2020-02-29 10:51:10 -05:00
parent 8585514558
commit 2dfe0ec236

View File

@ -9,6 +9,7 @@ import (
"unicode"
"github.com/dhowden/tag"
"github.com/rainycape/unidecode"
)
var trackNameReg = regexp.MustCompile("^([0-9]{2}).+")
@ -63,5 +64,6 @@ func Sanitize(s string) string {
}
return r
}, s)
s = unidecode.Unidecode(s)
return s
}