Documentation ¶
Overview ¶
Package bandcamp extracts information from Bandcamp pages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{}
Provider implements internal.Provider for Bandcamp.
func (*Provider) CleanURL ¶
CleanURL returns a cleaned version of a Bandcamp URL like "https://artist-name.bandcamp.com/album/album-name" or "https://artist-name.bandcamp.com/track/track-name". 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 extracts release information from the supplied Bandcamp page. This is heavily based on the bandcamp_importer.user.js userscript: https://github.com/murdos/musicbrainz-userscripts/blob/master/bandcamp_importer.user.js
Click to show internal directories.
Click to hide internal directories.