Fixing build errors
This commit is contained in:
parent
54cfa1de5a
commit
335c19aa81
|
@ -4,6 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"github.com/jmoiron/jsonq"
|
"github.com/jmoiron/jsonq"
|
||||||
"github.com/layeh/gumble/gumble"
|
"github.com/layeh/gumble/gumble"
|
||||||
|
@ -100,8 +101,8 @@ func (sc SoundCloud) NewSong(user string, trackData *jsonq.JsonQuery, playlist P
|
||||||
id: id,
|
id: id,
|
||||||
title: title,
|
title: title,
|
||||||
thumbnail: thumbnail,
|
thumbnail: thumbnail,
|
||||||
submitter: user.Name,
|
submitter: user,
|
||||||
duration: duration,
|
duration: strconv.ParseInt(duration),
|
||||||
playlist: playlist,
|
playlist: playlist,
|
||||||
skippers: make([]string, 0),
|
skippers: make([]string, 0),
|
||||||
dontSkip: false,
|
dontSkip: false,
|
||||||
|
|
2
web.go
2
web.go
|
@ -128,7 +128,7 @@ func (web *WebServer) skip(w http.ResponseWriter, r *http.Request) {
|
||||||
func (web *WebServer) status(w http.ResponseWriter, r *http.Request) {
|
func (web *WebServer) status(w http.ResponseWriter, r *http.Request) {
|
||||||
var uname = web.token_client[r.FormValue("token")]
|
var uname = web.token_client[r.FormValue("token")]
|
||||||
if uname == nil {
|
if uname == nil {
|
||||||
fmt.Fprintf(w, string(json.MarshalIndent(&Status{true, "Invalid Token"})))
|
fmt.Fprintf(w, string(json.Marshal(&Status{true, "Invalid Token"})))
|
||||||
} else {
|
} else {
|
||||||
// Generate song queue
|
// Generate song queue
|
||||||
var songsInQueue [dj.queue.Len()]SongInfo
|
var songsInQueue [dj.queue.Len()]SongInfo
|
||||||
|
|
Reference in a new issue