acoustid

package
v3.7.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package acoustid is not production ready.

Index

Constants

View Source
const (
	// ACOUSTID_URI is the root URI for all the AcoustID requests.
	ACOUSTID_URI = "http://api.acoustid.org/v2/lookup?client="
	// ACOUSTID_LOOKUP defines the standard lookup used throughout this package.
	// Both release and recording IDs are required by MusicBrainz.
	ACOUSTID_LOOKUP = "&meta=recordings+releases+tracks"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Artist

type Artist struct {
	ID   string
	Name string
}

type Date

type Date struct {
	Month int
	Day   int
	Year  int
}

type Medium

type Medium struct {
	Position    int
	Tracks      []Track
	Track_count int
	Format      string
}

type Meta

type Meta struct {
	Results []Result
	Status  string
	Error   struct{ Message string }
}

func Get

func Get(acoustIDKey string, fingerprint string, duration int) (metadata Meta, err error)

type Recording

type Recording struct {
	Releases []Release
	Artists  []Artist
	Duration int
	Title    string
	ID       string
}

type Release

type Release struct {
	Track_count   int
	ReleaseEvents []ReleaseEvent
	Country       string
	Title         string
	Artists       []Artist
	Date          Date
	MediumCount   int
	Mediums       []Medium
	ID            string
}

type ReleaseEvent

type ReleaseEvent struct {
	Date    Date
	Country string
}

type Result

type Result struct {
	Recordings []Recording
	Score      float64
	ID         string
}

type Track

type Track struct {
	Position int
	Artists  []Artist
	ID       string
	Title    string
}

Jump to

Keyboard shortcuts

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