Soundcloud API works, just no music [ci skip]
This commit is contained in:
parent
4520bac514
commit
c4ffe8810b
|
@ -4,6 +4,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"strconv"
|
||||||
|
|
||||||
"github.com/jmoiron/jsonq"
|
"github.com/jmoiron/jsonq"
|
||||||
"github.com/layeh/gumble/gumble"
|
"github.com/layeh/gumble/gumble"
|
||||||
|
@ -97,12 +98,12 @@ func (sc SoundCloud) NewSong(user *gumble.User, trackData *jsonq.JsonQuery, play
|
||||||
}
|
}
|
||||||
|
|
||||||
song := &YouTubeDLSong{
|
song := &YouTubeDLSong{
|
||||||
id: string(id),
|
id: strconv.Itoa(id),
|
||||||
title: title,
|
title: title,
|
||||||
url: url,
|
url: url,
|
||||||
thumbnail: thumbnail,
|
thumbnail: thumbnail,
|
||||||
submitter: user,
|
submitter: user,
|
||||||
duration: string(duration),
|
duration: strconv.Itoa(duration),
|
||||||
format: "mp3",
|
format: "mp3",
|
||||||
playlist: playlist,
|
playlist: playlist,
|
||||||
skippers: make([]string, 0),
|
skippers: make([]string, 0),
|
||||||
|
|
Reference in a new issue