Fixing build errors

This commit is contained in:
MichaelOultram 2015-08-03 22:44:03 +01:00
parent 335c19aa81
commit b503409753
2 changed files with 5 additions and 4 deletions

View file

@ -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/

View file

@ -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,