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