bandcamp

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: BSD-3-Clause Imports: 14 Imported by: 0

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

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

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

func (*Provider) NeedsPage added in v0.1.5

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 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

Jump to

Keyboard shortcuts

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