From c64ce68e856270947c3c9f98a68127459818b7ce Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Tue, 28 Jul 2015 00:13:13 +0100 Subject: [PATCH] Fixing build issues --- service_youtube.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service_youtube.go b/service_youtube.go index 85ffa52..1730a12 100644 --- a/service_youtube.go +++ b/service_youtube.go @@ -64,7 +64,7 @@ func RegexpFromURL(url string, patterns []string) *regexp.Regexp { // Creates the requested song/playlist and adds to the queue func (y YouTube) NewRequest(user *gumble.User, url string) error { - var shortURL, startOffset = "" + var shortURL, startOffset = "", "" if re, err := regexp.Compile(youtubePlaylistPattern); err == nil { if re.MatchString(url) { if dj.HasPermission(user.Name, dj.conf.Permissions.AdminAddPlaylists) { @@ -81,7 +81,8 @@ 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) + _, err := NewYouTubeSong(user.Name, shortURL, startOffset, nil) + return err } } else { return err