tagmap

package
v0.0.0-...-cdfb74c Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Differ

func Differ(weights TagWeights, score *float64) func(field string, a, b string) Diff

func WriteTo

func WriteTo(
	release *musicbrainz.Release, labelInfo musicbrainz.LabelInfo, genres []musicbrainz.Genre,
	i int, trk *musicbrainz.Track, f *tags.File,
)

Types

type Diff

type Diff struct {
	Field         string
	Before, After []dmp.Diff
	Equal         bool
}

func DiffRelease

func DiffRelease(weights TagWeights, release *musicbrainz.Release, tracks []musicbrainz.Track, files []*tags.File) (float64, []Diff)

type TagWeights

type TagWeights map[string]float64

func (TagWeights) For

func (tw TagWeights) For(field string) float64

Jump to

Keyboard shortcuts

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