From b829c794e623783cf402a3ceb3988175547d9eed Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Sat, 26 Sep 2015 16:22:22 +0100 Subject: [PATCH] Convert the duration seconds from float64 to int --- service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service.go b/service.go index baf2758..55dc7ba 100644 --- a/service.go +++ b/service.go @@ -91,7 +91,7 @@ func FindServiceAndAdd(user *gumble.User, url string) error { oldLength := dj.queue.Len() for _, song := range songArray { // Check song is not too long - if dj.conf.General.MaxSongDuration == 0 || song.Duration().Seconds() <= dj.conf.General.MaxSongDuration { + if dj.conf.General.MaxSongDuration == 0 || int(song.Duration().Seconds()) <= dj.conf.General.MaxSongDuration { if !isNil(song.Playlist()) { title = song.Playlist().Title() } else {