Fix sanitizing accented articles

This commit is contained in:
Deluan 2020-09-08 09:36:08 -04:00
parent e50a720818
commit 28aefb4858

View file

@ -60,9 +60,8 @@ func (s *mediaFileMapper) toMediaFile(md *Metadata) model.MediaFile {
} }
func sanitizeFieldForSorting(originalValue string) string { func sanitizeFieldForSorting(originalValue string) string {
v := utils.NoArticle(originalValue) v := strings.TrimSpace(sanitize.Accents(originalValue))
v = strings.TrimSpace(sanitize.Accents(v)) return utils.NoArticle(v)
return v
} }
func (s *mediaFileMapper) mapTrackTitle(md *Metadata) string { func (s *mediaFileMapper) mapTrackTitle(md *Metadata) string {