Fixing build errors
This commit is contained in:
parent
a7f1055ab5
commit
cd03a947ed
|
@ -114,7 +114,7 @@ func (sc SoundCloud) NewSong(user *gumble.User, trackData *jsonq.JsonQuery, offs
|
||||||
url: url,
|
url: url,
|
||||||
thumbnail: thumbnail,
|
thumbnail: thumbnail,
|
||||||
submitter: user,
|
submitter: user,
|
||||||
Duration: durationMS / 1000,
|
duration: durationMS / 1000,
|
||||||
offset: offset,
|
offset: offset,
|
||||||
format: "mp3",
|
format: "mp3",
|
||||||
playlist: playlist,
|
playlist: playlist,
|
||||||
|
|
|
@ -90,7 +90,7 @@ func (yt YouTube) NewSong(user *gumble.User, id, offset string, playlist Playlis
|
||||||
id: id,
|
id: id,
|
||||||
url: "https://youtu.be/" + id,
|
url: "https://youtu.be/" + id,
|
||||||
offset: int(yt.parseTime(offset).Seconds()),
|
offset: int(yt.parseTime(offset).Seconds()),
|
||||||
Duration: int(yt.parseTime(duration).Seconds()),
|
duration: int(yt.parseTime(duration).Seconds()),
|
||||||
thumbnail: thumbnail,
|
thumbnail: thumbnail,
|
||||||
format: "m4a",
|
format: "m4a",
|
||||||
skippers: make([]string, 0),
|
skippers: make([]string, 0),
|
||||||
|
|
|
@ -176,7 +176,7 @@ func (dl *YouTubeSong) DurationInt() string {
|
||||||
|
|
||||||
// DurationString returns the pretty version of duration for the Song.
|
// DurationString returns the pretty version of duration for the Song.
|
||||||
func (dl *YouTubeSong) DurationString() string {
|
func (dl *YouTubeSong) DurationString() string {
|
||||||
timeDuration, _ := time.ParseDuration(strconv.Iota(dl.duration) + "s")
|
timeDuration, _ := time.ParseDuration(strconv.Itoa(dl.duration) + "s")
|
||||||
return timeDuration.String()
|
return timeDuration.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue