From c4ffe8810b5bad40eb8dbaf95ff9dd641fdd4f1f Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Thu, 13 Aug 2015 15:07:34 +0100 Subject: [PATCH] Soundcloud API works, just no music [ci skip] --- service_soundcloud.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service_soundcloud.go b/service_soundcloud.go index d98774d..0ba4b5d 100644 --- a/service_soundcloud.go +++ b/service_soundcloud.go @@ -4,6 +4,7 @@ import ( "errors" "fmt" "os" + "strconv" "github.com/jmoiron/jsonq" "github.com/layeh/gumble/gumble" @@ -97,12 +98,12 @@ func (sc SoundCloud) NewSong(user *gumble.User, trackData *jsonq.JsonQuery, play } song := &YouTubeDLSong{ - id: string(id), + id: strconv.Itoa(id), title: title, url: url, thumbnail: thumbnail, submitter: user, - duration: string(duration), + duration: strconv.Itoa(duration), format: "mp3", playlist: playlist, skippers: make([]string, 0),