Documentation ¶
Index ¶
- func DownloadTrackList(session *core.Session, idList []string) error
- func GetAlbumTracks(session *core.Session, id string) (*[]string, error)
- func GetArtistTracks(session *core.Session, id string) (*[]string, error)
- func NiceJsonFormat(object interface{}) string
- func Search(session *core.Session, query string) (*metadata.SearchResult, error)
- type SpotifyAlbum
- type SpotifyTrack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NiceJsonFormat ¶
func NiceJsonFormat(object interface{}) string
Types ¶
type SpotifyAlbum ¶
type SpotifyAlbum struct { Name string Label string Genre []string Date time.Time ArtistNames []string }
use these structs because they are much easier to work with than protobuf structs
type SpotifyTrack ¶
type SpotifyTrack struct { AudioFile io.Reader TrackName string TrackNumber int32 TrackDuration int32 TrackDiscNumber int32 TrackArtistNames []string Album SpotifyAlbum }
func GetTrackFileAndInfo ¶
func GetTrackFileAndInfo(session *core.Session, trackID string) (*SpotifyTrack, error)
func GetTrackInfo ¶
func GetTrackInfo(audioFile io.Reader, track *Spotify.Track) *SpotifyTrack
Click to show internal directories.
Click to hide internal directories.