From 57e3c50e04f0c5695bb6f5b593942a0cc44ec5f7 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Mon, 27 Jul 2015 23:44:09 +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 15cecd6..74e605b 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, shortURL) + NewYouTubePlaylist(user.Name, 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, shortURL, startOffset, nil) + NewYouTubeSong(user.Name, shortURL, startOffset, nil) } return nil } else {