Documentation ¶
Index ¶
- type CueToolsMetadata
- func (m *CueToolsMetadata) GetCRC32() (crc32 []string)
- func (m *CueToolsMetadata) GetConfidence() (conf []int)
- func (m *CueToolsMetadata) GetMusicbrainzAlbums() (albums []*metadata.Album)
- func (m *CueToolsMetadata) GetParity() (parity []string)
- func (m *CueToolsMetadata) GetResultId() (id []int)
- func (m *CueToolsMetadata) GetResultURL() (id []string)
- func (m *CueToolsMetadata) GetSyndrome() (syndrome []string)
- func (m *CueToolsMetadata) GetTOCs() (tocs []metadata.TOC)
- func (m *CueToolsMetadata) GetTracksCRC32() (crc32 [][]string)
- type Source
- func (s *Source) FindByTOC(toc metadata.TOC) (albums []*metadata.Album)
- func (s *Source) FindByTocID(tocId metadata.TocID) (albums []*metadata.Album)
- func (s *Source) FindMetadataByTOC(toc metadata.TOC) *CueToolsMetadata
- func (s *Source) GetLicense() metadata.License
- func (s *Source) GetName() string
- func (s *Source) GetURL() string
- func (s *Source) Test()
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 (*Source) FindByTocID ¶
func (*Source) FindMetadataByTOC ¶
func (s *Source) FindMetadataByTOC(toc metadata.TOC) *CueToolsMetadata
func (*Source) GetLicense ¶
Click to show internal directories.
Click to hide internal directories.