coverart

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ArchiveUrl = "https://coverartarchive.org/release/%s"

Variables

This section is empty.

Functions

This section is empty.

Types

type CoverArt

type CoverArt struct {
	Images  []Image `json:"images"`
	Release string  `json:"release"`
}

func FromAlbumId

func FromAlbumId(id string) (coverArt *CoverArt, err error)

FromAlbumId retrieves cover art for the provided musicbrainz release id.

func (*CoverArt) FrontLarge

func (ca *CoverArt) FrontLarge() (thumbUrl string, err error)

FrontLarge returns the large thumbnail url for the front cover.

type Image

type Image struct {
	Image      string            `json:"image"`
	Edit       int               `json:"edit"`
	Comment    string            `json:"comment"`
	Thumbnails map[string]string `json:"thumbnails"`
	Id         int64             `json:"id"`
	Types      []string          `json:"types"`
	Approved   bool              `json:"approved"`
	Back       bool              `json:"back"`
	Front      bool              `json:"front"`
}

Jump to

Keyboard shortcuts

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