Documentation ¶
Overview ¶
Package tidal uses Tidal's API to seed edits.
Index ¶
Constants ¶
View Source
const AllCountriesCode = "XW"
AllCountriesCode is a value for online.Config's CountryCode field indicating that all countries should be queried.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{}
Provider implements internal.Provider for Tidal.
func (*Provider) CleanURL ¶
CleanURL returns a cleaned version of a Tidal album URL:
https://tidal.com/album/1234 (MB's canonical form, redirects to /browse/album/1234) https://tidal.com/browse/album/1234 (Tidal's canonical form) https://listen.tidal.com/album/1234 (streaming page)
An error is returned if the URL doesn't match this format.
func (*Provider) ExampleURL ¶
func (*Provider) Release ¶
func (p *Provider) Release(ctx context.Context, page *web.Page, pageURL string, db *mbdb.DB, cfg *internal.Config) (rel *seed.Release, img *seed.Info, err error)
Release generates a seeded release edit for the supplied Tidal album URL. Tidal provides a JSON API, so the page parameter is not used.
Click to show internal directories.
Click to hide internal directories.