Documentation ¶
Overview ¶
Package spotify implements a streamingprovider for Spotify.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements a streamingproviders.Provider for Spotify.
func (*Provider) Info ¶
func (p *Provider) Info() streamingproviders.Info
Info returns information about this provider.
func (*Provider) LookupSongByURL ¶
func (p *Provider) LookupSongByURL(ctx context.Context, urlStr string) (*streamingproviders.Song, error)
LookupSongByURL returns a song from the provided URL. The URL must match the following format: - https://open.spotify.com/track/1qRbITa6QZoD6kQpBLMgao
func (*Provider) Search ¶
func (p *Provider) Search(ctx context.Context, song *streamingproviders.Song) (*streamingproviders.Song, error)
Search returns a song from this provider using a Song provided from another provider.
Click to show internal directories.
Click to hide internal directories.