From b95aeee62d431585d0786bbbfb3becc36db5c9e0 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Mon, 3 Aug 2015 22:18:49 +0100 Subject: [PATCH] Fixing build errors --- service_soundcloud.go | 2 +- songqueue.go | 2 +- web.go | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/service_soundcloud.go b/service_soundcloud.go index 20e636e..c6f5d71 100644 --- a/service_soundcloud.go +++ b/service_soundcloud.go @@ -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, diff --git a/songqueue.go b/songqueue.go index 54e3610..d00f771 100644 --- a/songqueue.go +++ b/songqueue.go @@ -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 } diff --git a/web.go b/web.go index d9873d7..e44ccbf 100644 --- a/web.go +++ b/web.go @@ -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