From b5034097536faf6707cb0e05fd418fd115685da4 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Mon, 3 Aug 2015 22:44:03 +0100 Subject: [PATCH] Fixing build errors --- .travis.yml | 4 +++- service_soundcloud.go | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index cb112de..095beee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,9 @@ cache: directories: - $HOME/opus - $HOME/bin - - $TRAVIS_BUILD_DIR/.vendor + - $HOME/gopath/bin + - $HOME/gopath/src/github.com/nitrous-io/goop + - $HOME/gopath/src/github.com/MichaelOultram/mumbledj/.vendor before_script: - export PATH=$PATH:~/bin/ diff --git a/service_soundcloud.go b/service_soundcloud.go index 7cd328a..0d63bc4 100644 --- a/service_soundcloud.go +++ b/service_soundcloud.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "os" - "strconv" "github.com/jmoiron/jsonq" "github.com/layeh/gumble/gumble" @@ -88,7 +87,7 @@ func (sc SoundCloud) NewSong(user string, trackData *jsonq.JsonQuery, playlist P if err != nil { return "", err } - duration, err := trackData.Int("duration") + duration, err := trackData.String("duration") if err != nil { return "", err } @@ -102,7 +101,7 @@ func (sc SoundCloud) NewSong(user string, trackData *jsonq.JsonQuery, playlist P title: title, thumbnail: thumbnail, submitter: user, - duration: strconv.ParseInt(duration), + duration: duration, playlist: playlist, skippers: make([]string, 0), dontSkip: false,