spotconvenience

package
v0.0.0-...-17e4d57 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadTrackList

func DownloadTrackList(session *core.Session, idList []string) error

func GetAlbumTracks

func GetAlbumTracks(session *core.Session, id string) (*[]string, error)

func GetArtistTracks

func GetArtistTracks(session *core.Session, id string) (*[]string, error)

func NiceJsonFormat

func NiceJsonFormat(object interface{}) string
func Search(session *core.Session, query string) (*metadata.SearchResult, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL