This commit is contained in:
2017-11-04 17:11:47 +01:00
parent b12c4130ba
commit 28da13e8f0
11 changed files with 90 additions and 47 deletions

View File

@ -75,6 +75,10 @@ func Get(ctx *aero.Context) string {
return !track.IsDraft && len(track.Media) > 0 && arn.Contains(track.Tags, "anime:"+anime.ID)
})
sort.Slice(tracks, func(i, j int) bool {
return tracks[i].Title < tracks[j].Title
})
if err != nil {
return ctx.Error(http.StatusNotFound, "Error fetching soundtracks", err)
}