From 603e1c443a63595c73f63265f8bd755050b0651f Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Mon, 27 Jul 2015 23:41:27 +0100 Subject: [PATCH] Fixing build issues --- service_youtube.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service_youtube.go b/service_youtube.go index 74e605b..15cecd6 100644 --- a/service_youtube.go +++ b/service_youtube.go @@ -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 {