applemusic

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 9 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, u *url.URL) (*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