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,
|
||||
thumbnail: thumbnail,
|
||||
submitter: user,
|
||||
Duration: durationMS / 1000,
|
||||
duration: durationMS / 1000,
|
||||
offset: offset,
|
||||
format: "mp3",
|
||||
playlist: playlist,
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue