metadata

package
v0.52.5 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(files ...string) (map[string]Tags, error)

func LogExtractors added in v0.52.0

func LogExtractors()

func RegisterExtractor added in v0.49.0

func RegisterExtractor(id string, parser Extractor)

Types

type Extractor

type Extractor interface {
	Parse(files ...string) (map[string]ParsedTags, error)
	CustomMappings() ParsedTags
	Version() string
}

type ParsedTags added in v0.49.0

type ParsedTags map[string][]string

func (ParsedTags) Map added in v0.49.0

func (p ParsedTags) Map(customMappings ParsedTags) ParsedTags

type Tags added in v0.44.0

type Tags struct {
	Tags ParsedTags
	// contains filtered or unexported fields
}

func NewTag added in v0.44.0

func NewTag(filePath string, fileInfo os.FileInfo, tags ParsedTags) Tags

func (Tags) Album added in v0.44.0

func (t Tags) Album() string

func (Tags) AlbumArtist added in v0.44.0

func (t Tags) AlbumArtist() string

func (Tags) Artist added in v0.44.0

func (t Tags) Artist() string

func (Tags) BirthTime added in v0.50.0

func (t Tags) BirthTime() time.Time

func (Tags) BitRate added in v0.44.0

func (t Tags) BitRate() int

func (Tags) Bpm added in v0.44.0

func (t Tags) Bpm() int

func (Tags) CatalogNum added in v0.44.0

func (t Tags) CatalogNum() string

func (Tags) Channels added in v0.46.0

func (t Tags) Channels() int

func (Tags) Comment added in v0.44.0

func (t Tags) Comment() string

func (Tags) Compilation added in v0.44.0

func (t Tags) Compilation() bool

func (Tags) Date added in v0.50.0

func (t Tags) Date() (int, string)

func (Tags) DiscNumber added in v0.44.0

func (t Tags) DiscNumber() (int, int)

func (Tags) DiscSubtitle added in v0.44.0

func (t Tags) DiscSubtitle() string

func (Tags) Duration added in v0.44.0

func (t Tags) Duration() float32

func (Tags) FilePath added in v0.44.0

func (t Tags) FilePath() string

func (Tags) Genres added in v0.45.0

func (t Tags) Genres() []string

func (Tags) HasPicture added in v0.44.0

func (t Tags) HasPicture() bool

func (Tags) Lyrics added in v0.44.0

func (t Tags) Lyrics() string

func (Tags) MbzAlbumArtistID added in v0.44.0

func (t Tags) MbzAlbumArtistID() string

func (Tags) MbzAlbumComment added in v0.44.0

func (t Tags) MbzAlbumComment() string

func (Tags) MbzAlbumID added in v0.44.0

func (t Tags) MbzAlbumID() string

func (Tags) MbzAlbumType added in v0.44.0

func (t Tags) MbzAlbumType() string

func (Tags) MbzArtistID added in v0.44.0

func (t Tags) MbzArtistID() string

func (Tags) MbzRecordingID added in v0.50.0

func (t Tags) MbzRecordingID() string

func (Tags) MbzReleaseTrackID added in v0.48.0

func (t Tags) MbzReleaseTrackID() string

func (Tags) ModificationTime added in v0.44.0

func (t Tags) ModificationTime() time.Time

func (Tags) OriginalDate added in v0.50.0

func (t Tags) OriginalDate() (int, string)

func (Tags) RGAlbumGain added in v0.49.0

func (t Tags) RGAlbumGain() float64

func (Tags) RGAlbumPeak added in v0.49.0

func (t Tags) RGAlbumPeak() float64

func (Tags) RGTrackGain added in v0.49.0

func (t Tags) RGTrackGain() float64

func (Tags) RGTrackPeak added in v0.49.0

func (t Tags) RGTrackPeak() float64

func (Tags) ReleaseDate added in v0.50.0

func (t Tags) ReleaseDate() (int, string)

func (Tags) SampleRate added in v0.52.5

func (t Tags) SampleRate() int

func (Tags) Size added in v0.44.0

func (t Tags) Size() int64

func (Tags) SortAlbum added in v0.44.0

func (t Tags) SortAlbum() string

func (Tags) SortAlbumArtist added in v0.44.0

func (t Tags) SortAlbumArtist() string

func (Tags) SortArtist added in v0.44.0

func (t Tags) SortArtist() string

func (Tags) SortTitle added in v0.44.0

func (t Tags) SortTitle() string

func (Tags) Suffix added in v0.44.0

func (t Tags) Suffix() string

func (Tags) Title added in v0.44.0

func (t Tags) Title() string

func (Tags) TrackNumber added in v0.44.0

func (t Tags) TrackNumber() (int, int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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