From 2dfe0ec2365a62fdf5aba149f0664b042af5b205 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 29 Feb 2020 10:51:10 -0500 Subject: [PATCH] Transliterate track info to ASCII on clean --- sanitize.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sanitize.go b/sanitize.go index ea1755b..4824d09 100644 --- a/sanitize.go +++ b/sanitize.go @@ -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 }