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 return "", err
} }
song := &YoutubeDL{ song := &YouTubeDL{
id: id, id: id,
title: title, title: title,
thumbnail: thumbnail, 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 // 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
View file

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