From 55e2b7168f680d9fb73b45f760c6fe1fe683b6a1 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Sun, 16 Aug 2015 19:12:39 +0100 Subject: [PATCH] Fixing build issues --- service_soundcloud.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/service_soundcloud.go b/service_soundcloud.go index afe52f9..2b4714d 100644 --- a/service_soundcloud.go +++ b/service_soundcloud.go @@ -64,7 +64,8 @@ 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.Atoi(timesplit[i]) * multiplier + time, _ := strconv.Atoi(timesplit[i]) + offset += time * multiplier multiplier *= 60 } fmt.Printf("Offset: " + strconv.Itoa(offset)) // DEBUG