From a5fe8960f2a203a8823ad1dc57a052eae5cbbe7c Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Sun, 16 Aug 2015 01:18:46 +0100 Subject: [PATCH] Fixing build errors --- main.go | 1 - service.go | 1 + service_soundcloud.go | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 0de2dc4..3682ac7 100644 --- a/main.go +++ b/main.go @@ -14,7 +14,6 @@ import ( "os" "os/user" "reflect" - "regexp" "strings" "time" diff --git a/service.go b/service.go index c6ec6e1..a8e400c 100644 --- a/service.go +++ b/service.go @@ -10,6 +10,7 @@ package main import ( "errors" "fmt" + "regexp" "github.com/layeh/gumble/gumble" ) diff --git a/service_soundcloud.go b/service_soundcloud.go index a204010..1917e3d 100644 --- a/service_soundcloud.go +++ b/service_soundcloud.go @@ -66,7 +66,7 @@ func (sc SoundCloud) NewRequest(user *gumble.User, url string) (string, error) { } // NewSong creates a track and adds to the queue -func (sc SoundCloud) NewSong(user *gumble.User, trackData *jsonq.JsonQuery, playlist Playlist) (Song, error) { +func (sc SoundCloud) NewSong(user *gumble.User, trackData *jsonq.JsonQuery, playlist Playlist) (string, error) { title, _ := trackData.String("title") id, _ := trackData.Int("id") duration, _ := trackData.Int("duration") @@ -94,5 +94,5 @@ func (sc SoundCloud) NewSong(user *gumble.User, trackData *jsonq.JsonQuery, play dj.queue.AddSong(song) return song, nil } - return nil, errors.New(VIDEO_TOO_LONG_MSG) + return "", errors.New(VIDEO_TOO_LONG_MSG) }