only store differing unidecode and search both cols

This commit is contained in:
sentriz
2019-06-27 17:22:36 +01:00
parent f69b24ca79
commit 508f44c066
3 changed files with 31 additions and 9 deletions

View File

@@ -39,7 +39,11 @@ var coverFilenames = map[string]struct{}{
}
func decoded(in string) string {
return unidecode.Unidecode(in)
result := unidecode.Unidecode(in)
if result == in {
return ""
}
return result
}
type Scanner struct {