Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SearchMetadata ¶
func SearchMetadata(disc *DiscHandlerResult, fuzzy bool) (albums []*metadata.Album)
Types ¶
type DiscHandlerResult ¶
type DiscHandlerResult struct { TOC metadata.TOC CRC32 uint32 CueToolsCRC32 uint32 Directory string Tracks []DiscHandlerTrack CommonMetadata map[string]string Identifiers metadata.NameSlice //DiscNumber 1-indexed disc number DiscNumber int DiscTotal int Album string ReplayGain struct { Gain float64 Peak float64 } }
func HandleDiscEntry ¶
func HandleDiscEntry(panakoInstance *panako.Instance, pathEntry string) *DiscHandlerResult
func (*DiscHandlerResult) ToMetadataAlbum ¶
func (d *DiscHandlerResult) ToMetadataAlbum() (album *metadata.Album)
type DiscHandlerTrack ¶
type DiscHandlerTrack struct { FileName string TrackName string SortName string Fingerprints struct { Panako []*panako.Fingerprint CRC32 uint32 CueToolsCRC32 uint32 AccurateRipV1 uint32 AccurateRipV2 uint32 } FileMetadata struct { DiscNumber int Artists metadata.NameSlice Album string Year int TrackNumber int Title string OriginalTitle string Lyrics string EmbeddedPicture pictureEntry } AudioMetadata struct { SampleRate int Channels int NumberOfFullSamples int Duration time.Duration ReplayGain struct { Gain float64 Peak float64 } } }
Click to show internal directories.
Click to hide internal directories.