Some refactoring

This commit is contained in:
Deluan
2016-02-29 13:56:09 -05:00
parent 1c47b7b8ef
commit 1a4f783669
4 changed files with 19 additions and 24 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import (
"github.com/deluan/gosonic/repositories"
"github.com/deluan/gosonic/models"
"strings"
"github.com/deluan/gosonic/utils"
)
type Scanner interface {
@@ -92,7 +93,7 @@ func persist(mfRepo *repositories.MediaFile, mf *models.MediaFile, albumRepo *re
func collectIndex(a *models.Artist, artistIndex map[string]tempIndex) {
name := a.Name
indexName := strings.ToLower(models.NoArticle(name))
indexName := strings.ToLower(utils.NoArticle(name))
if indexName == "" {
return
}