Fixing build issues

This commit is contained in:
MichaelOultram 2015-07-28 21:48:20 +01:00
parent a7e6b74b9d
commit a0f8ee59a1
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

2
web.go
View file

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