Fixing build errors

This commit is contained in:
MichaelOultram 2015-08-03 22:18:49 +01:00
parent afb05faecb
commit b95aeee62d
3 changed files with 3 additions and 4 deletions

View file

@ -96,7 +96,7 @@ func (sc SoundCloud) NewSong(user string, trackData *jsonq.JsonQuery, playlist P
return "", err
}
song := &YoutubeDL{
song := &YouTubeDL{
id: id,
title: title,
thumbnail: thumbnail,

View file

@ -78,7 +78,7 @@ func (q *SongQueue) Traverse(visit func(i int, s Song)) {
}
// 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 {
return q.queue[i], nil
}

3
web.go
View file

@ -9,7 +9,6 @@ import (
"math/rand"
"net/http"
"os"
"path/filepath"
"strconv"
"strings"
"time"
@ -29,7 +28,7 @@ type Page struct {
User string
}
type status struct {
type Status struct {
Error bool
ErrorMsg string
Queue []SongInfo