deezer

package
v0.0.0-...-a5f1b2c Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelsPerSheet = horizontalLabels * verticalLabels
)

image size of 50x81.6mm (85.60 mm × 53.98 with 2mm margin on each side) at 600/2 DPI = 1181 x 1928 pix

Variables

This section is empty.

Functions

func CreateLabel

func CreateLabel(t Playable, out io.Writer) error

func CreateLabelSheet

func CreateLabelSheet(trackLists []Playable, out io.Writer) error

Types

type Album

type Album struct {
	Identifier      uint64 `json:"id"`
	Cover           string `json:"cover_xl"`
	ArtistContainer struct {
		Name string `json:"name"`
	} `json:"artist"`
	TitleString string `json:"title"`
}

func GetAlbum

func GetAlbum(albumId string) (*Album, error)

func (Album) Artist

func (a Album) Artist() string

func (Album) CoverArt

func (a Album) CoverArt() *image.Image

func (Album) FullTitle

func (a Album) FullTitle() string

func (Album) Id

func (a Album) Id() string

func (Album) String

func (a Album) String() string

func (Album) Title

func (a Album) Title() string

type Playable

type Playable interface {
	String() string
	CoverArt() *image.Image
	Id() string
	Artist() string
	Title() string
	FullTitle() string
}

type Playlist

type Playlist struct {
	Identifier  uint64 `json:"id"`
	Cover       string `json:"picture_xl"`
	TitleString string `json:"title"`
}

func GetPlaylist

func GetPlaylist(id string) (*Playlist, error)

func (Playlist) Artist

func (p Playlist) Artist() string

func (Playlist) CoverArt

func (p Playlist) CoverArt() *image.Image

func (Playlist) FullTitle

func (p Playlist) FullTitle() string

func (Playlist) Id

func (p Playlist) Id() string

func (Playlist) String

func (p Playlist) String() string

func (Playlist) Title

func (p Playlist) Title() string

type SearchContent

type SearchContent struct {
	Data []struct {
		Id     uint64 `json:"id"`
		Type   string `json:"type"`
		Title  string `json:"title"`
		Artist struct {
			Name string `json:"name"`
		} `json:"artist"`
	} `json:"data"`
	Total int `json:"total"`
}
func Search(queryString string) (*SearchContent, error)

Jump to

Keyboard shortcuts

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