Documentation ¶
Index ¶
- type Client
- type Track
- func (track *Track) Album() string
- func (track *Track) Artist() string
- func (track *Track) Artists() string
- func (track *Track) CoverURL() string
- func (track *Track) Download() (stream io.ReadCloser, err error)
- func (track *Track) Duration() int
- func (track *Track) ID() string
- func (track *Track) ISRC() string
- func (track *Track) PlayID() string
- func (track *Track) Populate() (err error)
- func (track *Track) Source() int
- func (track *Track) SpotifyURI() string
- func (track *Track) Title() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.4.0
type Client struct { //HTTPClient is a proxy-configured client HTTPClient *http.Client // contains filtered or unexported fields }
Client represents a CSN client
type Track ¶
type Track struct { StreamURL string // contains filtered or unexported fields }
Track represents a track on CSN site
func (*Track) Download ¶
func (track *Track) Download() (stream io.ReadCloser, err error)
Download returns a mp3 stream of the track
func (*Track) SpotifyURI ¶
SpotifyURI returns the track's equivalent spotify song, if known
Click to show internal directories.
Click to hide internal directories.