Documentation
¶
Index ¶
- type Album
- type Artist
- 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) SetSpotifyURI(sURI string)
- 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 Album ¶
type Album struct {
Title string `json:"title"`
Cover string `json:"cover"`
CoverSmall string `json:"cover_small"`
CoverMedium string `json:"cover_medium"`
CoverBig string `json:"cover_big"`
CoverXL string `json:"cover_xl"`
}
Album represents an album on Deezer
type Artist ¶
type Artist struct {
Name string `json:"name"`
}
Artist represents an artist on Deezer
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a Deezer client
func (*Client) GetTrackByID ¶
GetTrackByID returns the populated track with the provided ID on Deezer
func (*Client) PopulateMetadata ¶
PopulateMetadata populates the required metadata for downloading the track
type Track ¶
Track represents a track on Deezer
func (*Track) Download ¶
func (track *Track) Download() (stream io.ReadCloser, err error)
Download returns a mp3 stream of the track
func (*Track) SetSpotifyURI ¶
SetSpotifyURI set the track's SpotifyURI with the provided one
func (*Track) SpotifyURI ¶
SpotifyURI returns the track's equivalent spotify song, if known
Click to show internal directories.
Click to hide internal directories.