Fixing build errors
This commit is contained in:
parent
335c19aa81
commit
b503409753
|
@ -4,7 +4,9 @@ cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/opus
|
- $HOME/opus
|
||||||
- $HOME/bin
|
- $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:
|
before_script:
|
||||||
- export PATH=$PATH:~/bin/
|
- export PATH=$PATH:~/bin/
|
||||||
|
|
|
@ -4,7 +4,6 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strconv"
|
|
||||||
|
|
||||||
"github.com/jmoiron/jsonq"
|
"github.com/jmoiron/jsonq"
|
||||||
"github.com/layeh/gumble/gumble"
|
"github.com/layeh/gumble/gumble"
|
||||||
|
@ -88,7 +87,7 @@ func (sc SoundCloud) NewSong(user string, trackData *jsonq.JsonQuery, playlist P
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
duration, err := trackData.Int("duration")
|
duration, err := trackData.String("duration")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
@ -102,7 +101,7 @@ func (sc SoundCloud) NewSong(user string, trackData *jsonq.JsonQuery, playlist P
|
||||||
title: title,
|
title: title,
|
||||||
thumbnail: thumbnail,
|
thumbnail: thumbnail,
|
||||||
submitter: user,
|
submitter: user,
|
||||||
duration: strconv.ParseInt(duration),
|
duration: duration,
|
||||||
playlist: playlist,
|
playlist: playlist,
|
||||||
skippers: make([]string, 0),
|
skippers: make([]string, 0),
|
||||||
dontSkip: false,
|
dontSkip: false,
|
||||||
|
|
Reference in a new issue