Upgraded to latest aero version

This commit is contained in:
2019-06-01 13:55:49 +09:00
parent ae591e5e7e
commit 28db818c37
196 changed files with 645 additions and 593 deletions

View File

@ -8,7 +8,7 @@ import (
)
// Random returns a random soundtrack.
func Random(ctx *aero.Context) string {
func Random(ctx aero.Context) error {
tracks := arn.FilterSoundTracks(func(track *arn.SoundTrack) bool {
return !track.IsDraft
})
@ -20,7 +20,7 @@ func Random(ctx *aero.Context) string {
}
// Next returns the next soundtrack for the audio player.
func Next(ctx *aero.Context) string {
func Next(ctx aero.Context) error {
tracks := arn.FilterSoundTracks(func(track *arn.SoundTrack) bool {
return !track.IsDraft && track.File != ""
})