tidal

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: BSD-3-Clause Imports: 20 Imported by: 0

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

func (p *Provider) CleanURL(orig string) (string, error)

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 (p *Provider) ExampleURL() string

func (*Provider) NeedsPage

func (p *Provider) NeedsPage() bool

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.

Jump to

Keyboard shortcuts

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