Documentation ¶
Index ¶
- func Extract(files ...string) (map[string]Tags, error)
- func LogExtractors()
- func RegisterExtractor(id string, parser Extractor)
- type Extractor
- type ParsedTags
- type Tags
- func (t Tags) Album() string
- func (t Tags) AlbumArtist() string
- func (t Tags) Artist() string
- func (t Tags) BirthTime() time.Time
- func (t Tags) BitRate() int
- func (t Tags) Bpm() int
- func (t Tags) CatalogNum() string
- func (t Tags) Channels() int
- func (t Tags) Comment() string
- func (t Tags) Compilation() bool
- func (t Tags) Date() (int, string)
- func (t Tags) DiscNumber() (int, int)
- func (t Tags) DiscSubtitle() string
- func (t Tags) Duration() float32
- func (t Tags) FilePath() string
- func (t Tags) Genres() []string
- func (t Tags) HasPicture() bool
- func (t Tags) Lyrics() string
- func (t Tags) MbzAlbumArtistID() string
- func (t Tags) MbzAlbumComment() string
- func (t Tags) MbzAlbumID() string
- func (t Tags) MbzAlbumType() string
- func (t Tags) MbzArtistID() string
- func (t Tags) MbzRecordingID() string
- func (t Tags) MbzReleaseTrackID() string
- func (t Tags) ModificationTime() time.Time
- func (t Tags) OriginalDate() (int, string)
- func (t Tags) RGAlbumGain() float64
- func (t Tags) RGAlbumPeak() float64
- func (t Tags) RGTrackGain() float64
- func (t Tags) RGTrackPeak() float64
- func (t Tags) ReleaseDate() (int, string)
- func (t Tags) SampleRate() int
- func (t Tags) Size() int64
- func (t Tags) SortAlbum() string
- func (t Tags) SortAlbumArtist() string
- func (t Tags) SortArtist() string
- func (t Tags) SortTitle() string
- func (t Tags) Suffix() string
- func (t Tags) Title() string
- func (t Tags) TrackNumber() (int, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogExtractors ¶ added in v0.52.0
func LogExtractors()
func RegisterExtractor ¶ added in v0.49.0
Types ¶
type Extractor ¶
type Extractor interface { Parse(files ...string) (map[string]ParsedTags, error) CustomMappings() ParsedTags Version() string }
type ParsedTags ¶ added in v0.49.0
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) AlbumArtist ¶ added in v0.44.0
func (Tags) CatalogNum ¶ added in v0.44.0
func (Tags) Compilation ¶ added in v0.44.0
func (Tags) DiscNumber ¶ added in v0.44.0
func (Tags) DiscSubtitle ¶ added in v0.44.0
func (Tags) HasPicture ¶ added in v0.44.0
func (Tags) MbzAlbumArtistID ¶ added in v0.44.0
func (Tags) MbzAlbumComment ¶ added in v0.44.0
func (Tags) MbzAlbumID ¶ added in v0.44.0
func (Tags) MbzAlbumType ¶ added in v0.44.0
func (Tags) MbzArtistID ¶ added in v0.44.0
func (Tags) MbzRecordingID ¶ added in v0.50.0
func (Tags) MbzReleaseTrackID ¶ added in v0.48.0
func (Tags) ModificationTime ¶ added in v0.44.0
func (Tags) OriginalDate ¶ added in v0.50.0
func (Tags) RGAlbumGain ¶ added in v0.49.0
func (Tags) RGAlbumPeak ¶ added in v0.49.0
func (Tags) RGTrackGain ¶ added in v0.49.0
func (Tags) RGTrackPeak ¶ added in v0.49.0
func (Tags) ReleaseDate ¶ added in v0.50.0
func (Tags) SampleRate ¶ added in v0.52.5
func (Tags) SortAlbumArtist ¶ added in v0.44.0
func (Tags) SortArtist ¶ added in v0.44.0
func (Tags) TrackNumber ¶ added in v0.44.0
Click to show internal directories.
Click to hide internal directories.