Documentation
¶
Overview ¶
Package id3v2 can be used to retrieve most of the ID3v2 tags of an MP3 file.
It currently offers the two functions ProcessAllTags and MakeFileName, as well as a Verbosity indicator that can be used to tune the level of verbosity of the package (and, hopefully, of the application that uses it too).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Verbose uint
The Verbose variable can be used to set the level of verbosity of the package. Possible values are 0 (no output), 1 (output discovered tags) and 2 (output ID3v2 headers information).
Functions ¶
This section is empty.
Types ¶
type MP3Info ¶
type MP3Info struct { AllTags map[string]*ProcessedTag // the map of all processed tags BitRate int // bitrate (from the first sample) }
Information for a MP3 file
func ProcessAllTags ¶
ProcessAllTags processes all the tags of an MP3 file and saves related information in an MP3Info structure returned to the caller.
func (*MP3Info) MakeFileName ¶
MakeFileName makes an MP3 filename using the tags previously retrieved and saved in an MP3Info structure by ProcessAllTags. The resulting string should respect the following pattern:
artist/album/{disk-}track title.mp3
type ProcessedTag ¶
type ProcessedTag struct { Name string // understandable name Value string // tag value as a string }
A processed tag, as stored in the map of all processed tags.
Directories
¶
Path | Synopsis |
---|---|
examples
|
|
mp3copy
This utility uses the id3v3 package to sort and organize an MP3 library in a tree that respects the following organization: <artist>/<album>/[<disk>-]<track> <title>.mp3
|
This utility uses the id3v3 package to sort and organize an MP3 library in a tree that respects the following organization: <artist>/<album>/[<disk>-]<track> <title>.mp3 |
mp3dup
This utility uses the id3v3 package to find duplicates in an MP3 library.
|
This utility uses the id3v3 package to find duplicates in an MP3 library. |