cuetools_net

package
v0.0.0-...-b88af98 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CueToolsMetadata

type CueToolsMetadata struct {
	Entries []struct {
		Confidence int    `xml:"confidence,attr"`
		CRC32      string `xml:"crc32,attr"`
		Id         int    `xml:"id,attr"`
		HasParity  string `xml:"hasparity,attr"`
		NPar       int    `xml:"npar,attr"`
		Parity     string `xml:"parity,attr"`
		Syndrome   string `xml:"syndrome,attr"`
		Stride     int    `xml:"stride,attr"`
		TOC        string `xml:"toc,attr"`
		TrackCRC32 string `xml:"trackcrcs,attr"`
	} `xml:"entry"`
	Metadata []struct {
		Album      string `xml:"album,attr"`
		Artist     string `xml:"artist,attr"`
		DiscCount  int    `xml:"disccount,attr"`
		DiscNumber int    `xml:"discnumber,attr"`
		DiscName   string `xml:"discname,attr"`
		Id         string `xml:"id,attr"`
		Relevance  int    `xml:"relevance,attr"`
		Source     string `xml:"source,attr"`
		Year       int    `xml:"year,attr"`
		Tracks     []struct {
			Artist string `xml:"artist,attr"`
			Name   string `xml:"name,attr"`
		} `xml:"track"`
		Label []struct {
			CatalogNumber string `xml:"catno,attr"`
			Name          string `xml:"name,attr"`
		} `xml:"label"`
		Release struct {
			Country string `xml:"country,attr"`
			Date    string `xml:"date,attr"`
		} `xml:"release"`
		CoverArt []struct {
			Primary bool   `xml:"primary,attr"`
			URI     string `xml:"uri,attr"`
		} `xml:"coverart"`
	} `xml:"metadata"`
}

func (*CueToolsMetadata) GetCRC32

func (m *CueToolsMetadata) GetCRC32() (crc32 []string)

func (*CueToolsMetadata) GetConfidence

func (m *CueToolsMetadata) GetConfidence() (conf []int)

func (*CueToolsMetadata) GetMusicbrainzAlbums

func (m *CueToolsMetadata) GetMusicbrainzAlbums() (albums []*metadata.Album)

func (*CueToolsMetadata) GetParity

func (m *CueToolsMetadata) GetParity() (parity []string)

func (*CueToolsMetadata) GetResultId

func (m *CueToolsMetadata) GetResultId() (id []int)

func (*CueToolsMetadata) GetResultURL

func (m *CueToolsMetadata) GetResultURL() (id []string)

func (*CueToolsMetadata) GetSyndrome

func (m *CueToolsMetadata) GetSyndrome() (syndrome []string)

func (*CueToolsMetadata) GetTOCs

func (m *CueToolsMetadata) GetTOCs() (tocs []metadata.TOC)

func (*CueToolsMetadata) GetTracksCRC32

func (m *CueToolsMetadata) GetTracksCRC32() (crc32 [][]string)

GetTracksCRC32 [trackIndex][resultIndex]crc32

type Source

type Source struct {
	// contains filtered or unexported fields
}

func NewSource

func NewSource() *Source

func (*Source) FindByTOC

func (s *Source) FindByTOC(toc metadata.TOC) (albums []*metadata.Album)

func (*Source) FindByTocID

func (s *Source) FindByTocID(tocId metadata.TocID) (albums []*metadata.Album)

func (*Source) FindMetadataByTOC

func (s *Source) FindMetadataByTOC(toc metadata.TOC) *CueToolsMetadata

func (*Source) GetLicense

func (s *Source) GetLicense() metadata.License

func (*Source) GetName

func (s *Source) GetName() string

func (*Source) GetURL

func (s *Source) GetURL() string

func (*Source) Test

func (s *Source) Test()

Jump to

Keyboard shortcuts

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