applemusic

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: 8 Imported by: 0

Documentation

Overview

Package applemusic implements a streamingproviders.Provider for the Apple Music streaming service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

New returns a new streamingprovider.Provider for Apple Music. Requires the following environment variables: - MIKU_APPLE_MUSIC_API_TOKEN

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

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. URL format should be: https://music.apple.com/us/album/album-name/123456789?i=123456789

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