Fixing build issues
This commit is contained in:
parent
a7e6b74b9d
commit
a0f8ee59a1
|
@ -69,7 +69,7 @@ func findServiceAndAdd(user *gumble.User, url string) (string, error) {
|
||||||
oldLength := dj.queue.Len()
|
oldLength := dj.queue.Len()
|
||||||
var title string
|
var title string
|
||||||
var err error
|
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
|
// Starts playing the new song if nothing else is playing
|
||||||
if oldLength == 0 && dj.queue.Len() != 0 && !dj.audioStream.IsPlaying() {
|
if oldLength == 0 && dj.queue.Len() != 0 && !dj.audioStream.IsPlaying() {
|
||||||
|
|
2
web.go
2
web.go
|
@ -38,7 +38,7 @@ func addSong(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Fprintf(w, "Invalid Token")
|
fmt.Fprintf(w, "Invalid Token")
|
||||||
} else {
|
} else {
|
||||||
var url = html.UnescapeString(r.FormValue("url"))
|
var url = html.UnescapeString(r.FormValue("url"))
|
||||||
|
fmt.Fprintf(w, url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue