Documentation ¶
Overview ¶
Taken from https://github.com/zmb3/spotify/blob/master/examples/authenticate/authcode/authenticate.go ZMB3 is under an Apache License
Index ¶
Constants ¶
View Source
const TimeoutTime = 30 * time.Second
Variables ¶
This section is empty.
Functions ¶
func CleanupTask ¶
func CleanupTask(playlistID string, config SpotifyConfig, client *spotify.Client)
keep the aggregator playlist under 2500 tracks and remove duplicate songs
func RunAuthServer ¶
func RunAuthServer() (*spotify.Client, error)
func ScanAndAdd ¶
func ScanAndAdd(playlistID string, config SpotifyConfig, client *spotify.Client)
Types ¶
type AggregatorConfig ¶
type PlaylistConfig ¶
type SpotifyConfig ¶
type SpotifyConfig struct { Aggregator AggregatorConfig `yaml:"aggregator"` Playlists []PlaylistConfig `yaml:"playlists"` }
func LoadConfig ¶
func LoadConfig() SpotifyConfig
Click to show internal directories.
Click to hide internal directories.