diff --git a/service.go b/service.go index 551fc28..bc0db34 100644 --- a/service.go +++ b/service.go @@ -69,7 +69,7 @@ func findServiceAndAdd(user *gumble.User, url string) (string, error) { oldLength := dj.queue.Len() var title string var err error - if title, err := urlService.NewRequest(user, url); err == nil { + if title, err = urlService.NewRequest(user, url); err == nil { // Starts playing the new song if nothing else is playing if oldLength == 0 && dj.queue.Len() != 0 && !dj.audioStream.IsPlaying() { diff --git a/web.go b/web.go index b44c601..afc760f 100644 --- a/web.go +++ b/web.go @@ -38,7 +38,7 @@ func addSong(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Invalid Token") } else { var url = html.UnescapeString(r.FormValue("url")) - + fmt.Fprintf(w, url) } }