Fixing build errors
This commit is contained in:
parent
afb05faecb
commit
b95aeee62d
|
@ -96,7 +96,7 @@ func (sc SoundCloud) NewSong(user string, trackData *jsonq.JsonQuery, playlist P
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
||||||
song := &YoutubeDL{
|
song := &YouTubeDL{
|
||||||
id: id,
|
id: id,
|
||||||
title: title,
|
title: title,
|
||||||
thumbnail: thumbnail,
|
thumbnail: thumbnail,
|
||||||
|
|
|
@ -78,7 +78,7 @@ func (q *SongQueue) Traverse(visit func(i int, s Song)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gets the song at a specific point in the queue
|
// Gets the song at a specific point in the queue
|
||||||
func (q *SongQueue) Get(int i) (Song, error) {
|
func (q *SongQueue) Get(i int) (Song, error) {
|
||||||
if q.Len() > i+1 {
|
if q.Len() > i+1 {
|
||||||
return q.queue[i], nil
|
return q.queue[i], nil
|
||||||
}
|
}
|
||||||
|
|
3
web.go
3
web.go
|
@ -9,7 +9,6 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
@ -29,7 +28,7 @@ type Page struct {
|
||||||
User string
|
User string
|
||||||
}
|
}
|
||||||
|
|
||||||
type status struct {
|
type Status struct {
|
||||||
Error bool
|
Error bool
|
||||||
ErrorMsg string
|
ErrorMsg string
|
||||||
Queue []SongInfo
|
Queue []SongInfo
|
||||||
|
|
Reference in a new issue