Fixing build errors

This commit is contained in:
MichaelOultram 2015-09-26 16:06:48 +01:00
parent a7f1055ab5
commit cd03a947ed
3 changed files with 3 additions and 3 deletions

View file

@ -114,7 +114,7 @@ func (sc SoundCloud) NewSong(user *gumble.User, trackData *jsonq.JsonQuery, offs
url: url,
thumbnail: thumbnail,
submitter: user,
Duration: durationMS / 1000,
duration: durationMS / 1000,
offset: offset,
format: "mp3",
playlist: playlist,

View file

@ -90,7 +90,7 @@ func (yt YouTube) NewSong(user *gumble.User, id, offset string, playlist Playlis
id: id,
url: "https://youtu.be/" + id,
offset: int(yt.parseTime(offset).Seconds()),
Duration: int(yt.parseTime(duration).Seconds()),
duration: int(yt.parseTime(duration).Seconds()),
thumbnail: thumbnail,
format: "m4a",
skippers: make([]string, 0),

View file

@ -176,7 +176,7 @@ func (dl *YouTubeSong) DurationInt() string {
// DurationString returns the pretty version of duration for the Song.
func (dl *YouTubeSong) DurationString() string {
timeDuration, _ := time.ParseDuration(strconv.Iota(dl.duration) + "s")
timeDuration, _ := time.ParseDuration(strconv.Itoa(dl.duration) + "s")
return timeDuration.String()
}