Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-27 23:41:27 +01:00
parent 2da725e736
commit 603e1c443a

View file

@ -71,7 +71,7 @@ func (y YouTube) NewRequest(user *gumble.User, url string) error {
if re.MatchString(url) {
if dj.HasPermission(user.Name, dj.conf.Permissions.AdminAddPlaylists) {
shortURL = re.FindStringSubmatch(url)[1]
NewYouTubePlaylist(user.Name, shortURL)
NewYouTubePlaylist(user, shortURL)
} else {
return errors.New("NO_PLAYLIST_PERMISSION")
}
@ -81,7 +81,7 @@ func (y YouTube) NewRequest(user *gumble.User, url string) error {
if len(matches[0]) == 3 {
startOffset = matches[0][2]
}
NewYouTubeSong(user.Name, shortURL, startOffset, nil)
NewYouTubeSong(user, shortURL, startOffset, nil)
}
return nil
} else {