Improved soundtracks

This commit is contained in:
2017-10-15 20:19:45 +02:00
parent c0b28c9b0a
commit d1c26252ac
11 changed files with 60 additions and 26 deletions

View File

@ -13,7 +13,7 @@ const maxTracks = 9
// Get renders the soundtracks page.
func Get(ctx *aero.Context) string {
tracks, err := arn.FilterSoundTracks(func(track *arn.SoundTrack) bool {
return !track.IsDraft
return !track.IsDraft && len(track.Media) > 0
})
if err != nil {