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,