Skip to content

Commit

Permalink
feat(subsonic): sort artist album list
Browse files Browse the repository at this point in the history
fixes #197
  • Loading branch information
sentriz committed Feb 25, 2022
1 parent bb9b52b commit e56f64a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/ctrlsubsonic/handlers_by_tags.go
Expand Up @@ -65,6 +65,7 @@ func (c *Controller) ServeGetArtist(r *http.Request) *spec.Response {
return db.
Select("*, count(sub.id) child_count, sum(sub.length) duration").
Joins("LEFT JOIN tracks sub ON albums.id=sub.album_id").
Order("albums.right_path").
Group("albums.id")
}).
First(artist, id.Value)
Expand Down

0 comments on commit e56f64a

Please sign in to comment.