From cd03a947ed4952f31cfcecaac3938e02ae7dd902 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Sat, 26 Sep 2015 16:06:48 +0100 Subject: [PATCH] Fixing build errors --- service_soundcloud.go | 2 +- service_youtube.go | 2 +- youtube_dl.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/service_soundcloud.go b/service_soundcloud.go index 54fa26f..3491d99 100644 --- a/service_soundcloud.go +++ b/service_soundcloud.go @@ -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, diff --git a/service_youtube.go b/service_youtube.go index 991cf9c..453044c 100644 --- a/service_youtube.go +++ b/service_youtube.go @@ -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), diff --git a/youtube_dl.go b/youtube_dl.go index 2b1e352..fcd6dba 100644 --- a/youtube_dl.go +++ b/youtube_dl.go @@ -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() }