From 0760455962e109752068dfa2de4a50e7d08ec2a2 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Sun, 16 Aug 2015 14:37:49 +0100 Subject: [PATCH] Fixing build errors --- service_soundcloud.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service_soundcloud.go b/service_soundcloud.go index 39ed3ed..5897a1c 100644 --- a/service_soundcloud.go +++ b/service_soundcloud.go @@ -64,10 +64,10 @@ func (sc SoundCloud) NewRequest(user *gumble.User, url string) (string, error) { timesplit = strings.Split(timesplit[1], ":") multiplier := 1 for i := len(timesplit) - 1; i >= 0; i-- { - offset += strconv.Itoa(timesplit[i]) * multiplier + offset += strconv.Atoa(timesplit[i]) * multiplier mutiplier *= 60 } - fmt.Printf("Offset: " + offset) // DEBUG + fmt.Printf("Offset: " + strconv.Itoa(offset)) // DEBUG } return sc.NewSong(user, apiResponse, offset, nil) }