handler

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: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeAlbums

func MergeAlbums(albums ...*metadata.Album) (result []*metadata.Album)

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
		}
	}
}

Jump to

Keyboard shortcuts

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