Fixing build issues
This commit is contained in:
parent
9d78f9fdc0
commit
dc5741cf86
10
service.go
10
service.go
|
@ -89,14 +89,14 @@ func FindServiceAndAdd(user *gumble.User, url string) error {
|
||||||
|
|
||||||
// Loop through all songs and add to the queue
|
// Loop through all songs and add to the queue
|
||||||
oldLength := dj.queue.Len()
|
oldLength := dj.queue.Len()
|
||||||
for songToAdd := range songArray {
|
for _, song := range songArray {
|
||||||
// Check song is not too long
|
// Check song is not too long
|
||||||
time, _ := time.ParseDuration(songToAdd.Duration)
|
time, _ := time.ParseDuration(song.Duration)
|
||||||
if dj.conf.General.MaxSongDuration == 0 || int(time.Seconds()) <= dj.conf.General.MaxSongDuration {
|
if dj.conf.General.MaxSongDuration == 0 || int(time.Seconds()) <= dj.conf.General.MaxSongDuration {
|
||||||
if !isNil(songToAdd.Playlist()) {
|
if !isNil(song.Playlist()) {
|
||||||
title = songToAdd.Playlist().Title()
|
title = song.Playlist().Title()
|
||||||
} else {
|
} else {
|
||||||
title = songToAdd.Title()
|
title = song.Title()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add song to queue
|
// Add song to queue
|
||||||
|
|
Reference in a new issue