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) }