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:
parent
8585514558
commit
2dfe0ec236
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user