update importst

This commit is contained in:
sentriz
2019-04-23 16:50:43 +01:00
parent f131cdf269
commit e2e68abc10
8 changed files with 18 additions and 17 deletions

View File

@@ -8,18 +8,17 @@ import (
"unicode"
"github.com/jinzhu/gorm"
"github.com/mozillazg/go-unidecode"
"github.com/sentriz/gonic/db"
"github.com/sentriz/gonic/lastfm"
"github.com/sentriz/gonic/subsonic"
"github.com/mozillazg/go-unidecode"
)
var orderExpr = map[string]interface{}{
"random": gorm.Expr("random()"),
"newest": "updated_at desc",
"alphabeticalByName": "title",
"alphabeticalByArtist": "album_artist.name",
"random": gorm.Expr("random()"),
"newest": "updated_at desc",
"alphabeticalByName": "title",
}
func indexOf(s string) rune {