spotify

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Overview

Package spotify implements a streamingprovider for Spotify.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a new Spotify client using the following environment variables: - MIKU_SPOTIFY_CLIENT_ID - MIKU_SPOTIFY_CLIENT_SECRET

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

Search returns a song from this provider using a Song provided from another provider.

Jump to

Keyboard shortcuts

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