Further improved design

This commit is contained in:
2018-04-19 15:33:37 +02:00
parent fc493fc567
commit 7e040f7c44
4 changed files with 7 additions and 4 deletions

View File

@ -7,6 +7,6 @@ import (
// fetchAll returns all soundtracks
func fetchAll() []*arn.SoundTrack {
return arn.FilterSoundTracks(func(track *arn.SoundTrack) bool {
return !track.IsDraft && len(track.Media) > 0
return !track.IsDraft && track.File != ""
})
}