Fixing build issues

This commit is contained in:
MichaelOultram 2015-09-26 15:16:22 +01:00
parent 9d78f9fdc0
commit dc5741cf86

View file

@ -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