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 {