Documentation ¶
Index ¶
- Constants
- Variables
- type AttachedPictureFrame
- type CommentsFrame
- type DeclaredFrame
- type EventTimingCodesFrame
- type Frame
- type FrameType
- type InvolvedPeopleListFrame
- type ItunesCompilationFlagFrame
- type MusicCDIdentifierFrame
- type PictureType
- type Tag
- func (tag Tag) Album() string
- func (tag Tag) AlbumArtists() []string
- func (tag Tag) Artists() []string
- func (tag Tag) AttachedPictures() []AttachedPictureFrame
- func (tag Tag) Frames(ids ...string) []Frame
- func (tag Tag) Genres() []string
- func (tag Tag) Title() string
- func (tag Tag) TrackNumberAndPosition() (int, int)
- func (tag Tag) Year() string
- type TextInformationFrame
- type TimeStampFormat
- type URLLinkFrame
- type UniqueFileIdentifierFrame
- type UnknownFrame
- type UnsynchronisedLyricsOrTextTranscriptionFrame
- func (f UnsynchronisedLyricsOrTextTranscriptionFrame) ContentDescriptor() string
- func (f UnsynchronisedLyricsOrTextTranscriptionFrame) ID() string
- func (f UnsynchronisedLyricsOrTextTranscriptionFrame) Language() string
- func (f UnsynchronisedLyricsOrTextTranscriptionFrame) LyricsOrText() string
- func (f UnsynchronisedLyricsOrTextTranscriptionFrame) Size() int
Constants ¶
View Source
const FrameHeaderSize = 6
FrameHeaderSize is size of ID3v2.2 tag frame header.
View Source
const HeaderSize = 10
HeaderSize is size of ID3v2.2 tag header.
Variables ¶
View Source
var DeclaredFrames = map[string]DeclaredFrame{ "BUF": {"BUF", "Recommended buffer size", TypeUnknown}, "CNT": {"CNT", "Play counter", TypeUnknown}, "COM": {"COM", "Comments", TypeComments}, "CRA": {"CRA", "Audio encryption", TypeUnknown}, "CRM": {"CRM", "Encrypted meta frame", TypeUnknown}, "ETC": {"ETC", "Event timing codes", TypeUnknown}, "EQU": {"EQU", "Equalization", TypeUnknown}, "GEO": {"GEO", "General encapsulated object", TypeUnknown}, "IPL": {"IPL", "Involved people list", TypeInvolvedPeopleList}, "LNK": {"LNK", "Linked information", TypeUnknown}, "MCI": {"MCI", "Music CD Identifier", TypeUnknown}, "MLL": {"MLL", "MPEG location lookup table", TypeUnknown}, "PIC": {"PIC", "Attached picture", TypeAttachedPicture}, "POP": {"POP", "Popularimeter", TypeUnknown}, "REV": {"REV", "Reverb", TypeUnknown}, "RVA": {"RVA", "Relative volume adjustment", TypeUnknown}, "SLT": {"SLT", "Synchronized lyric/text", TypeUnknown}, "STC": {"STC", "Synced tempo codes", TypeUnknown}, "TAL": {"TAL", "Album/Movie/Show title", TypeTextInformation}, "TBP": {"TBP", "BPM (Beats Per Minute)", TypeTextInformation}, "TCM": {"TCM", "Composer", TypeTextInformation}, "TCO": {"TCO", "Content type", TypeTextInformation}, "TCR": {"TCR", "Copyright message", TypeTextInformation}, "TDA": {"TDA", "Date", TypeTextInformation}, "TDY": {"TDY", "Playlist delay", TypeTextInformation}, "TEN": {"TEN", "Encoded by", TypeTextInformation}, "TFT": {"TFT", "File type", TypeTextInformation}, "TIM": {"TIM", "Time", TypeTextInformation}, "TKE": {"TKE", "Initial key", TypeTextInformation}, "TLA": {"TLA", "Language(s)", TypeTextInformation}, "TLE": {"TLE", "Length", TypeTextInformation}, "TMT": {"TMT", "Media type", TypeTextInformation}, "TOA": {"TOA", "Original artist(s)/performer(s)", TypeTextInformation}, "TOF": {"TOF", "Original filename", TypeTextInformation}, "TOL": {"TOL", "Original Lyricist(s)/text writer(s)", TypeTextInformation}, "TOR": {"TOR", "Original release year", TypeTextInformation}, "TOT": {"TOT", "Original album/Movie/Show title", TypeTextInformation}, "TP1": {"TP1", "Lead artist(s)/Lead performer(s)/Soloist(s)/Performing group", TypeTextInformation}, "TP2": {"TP2", "Band/Orchestra/Accompaniment", TypeTextInformation}, "TP3": {"TP3", "Conductor/Performer refinement", TypeTextInformation}, "TP4": {"TP4", "Interpreted, remixed, or otherwise modified by", TypeTextInformation}, "TPA": {"TPA", "Part of a set", TypeTextInformation}, "TPB": {"TPB", "Publisher", TypeTextInformation}, "TRC": {"TRC", "ISRC (International Standard Recording Code)", TypeTextInformation}, "TRD": {"TRD", "Recording dates", TypeTextInformation}, "TRK": {"TRK", "Track number/Position in set", TypeTextInformation}, "TSI": {"TSI", "Size", TypeTextInformation}, "TSS": {"TSS", "Software/hardware and settings used for encoding", TypeTextInformation}, "TT1": {"TT1", "Content group description", TypeTextInformation}, "TT2": {"TT2", "Title/Songname/Content description", TypeTextInformation}, "TT3": {"TT3", "Subtitle/Description refinement", TypeTextInformation}, "TXT": {"TXT", "Lyricist/text writer", TypeTextInformation}, "TXX": {"TXX", "User defined text information frame", TypeUnknown}, "TYE": {"TYE", "Year", TypeTextInformation}, "TCP": {"TCP", "Part of a compilation", TypeiTunesCompilationFlag}, "UFI": {"UFI", "Unique file identifier", TypeUniqueFileIdentifier}, "ULT": {"ULT", "Unsychronized lyric/text transcription", TypeUnsychronisedLyricsOrTextTranscription}, "WAF": {"WAF", "Official audio file webpage", TypeURLLink}, "WAR": {"WAR", "Official artist/performer webpage", TypeURLLink}, "WAS": {"WAS", "Official audio source webpage", TypeURLLink}, "WCM": {"WCM", "Commercial information", TypeURLLink}, "WCP": {"WCP", "Copyright/Legal information", TypeURLLink}, "WPB": {"WPB", "Publishers official webpage", TypeURLLink}, "WXX": {"WXX", "User defined URL link frame", TypeUnknown}, }
View Source
var ErrTagNotFound = errors.New("no id3v2.2.0 tag found")
Functions ¶
This section is empty.
Types ¶
type AttachedPictureFrame ¶
type AttachedPictureFrame struct {
// contains filtered or unexported fields
}
func (AttachedPictureFrame) Description ¶
func (f AttachedPictureFrame) Description() string
type CommentsFrame ¶
type CommentsFrame struct {
// contains filtered or unexported fields
}
func (CommentsFrame) Language ¶
func (f CommentsFrame) Language() string
func (CommentsFrame) ShortContentDescription ¶
func (f CommentsFrame) ShortContentDescription() string
func (CommentsFrame) TheActualText ¶
func (f CommentsFrame) TheActualText() string
type DeclaredFrame ¶
type EventTimingCodesFrame ¶
type EventTimingCodesFrame struct {
// contains filtered or unexported fields
}
func (EventTimingCodesFrame) TimeStampFormat ¶
func (f EventTimingCodesFrame) TimeStampFormat() TimeStampFormat
type FrameType ¶
type FrameType int
const ( TypeUnknown FrameType = iota TypeUniqueFileIdentifier TypeTextInformation TypeURLLink TypeInvolvedPeopleList TypeMusicCDIdentifier TypeEventTimingCodes TypeMPEGLocationLookupTable TypeSyncedTempoCodes TypeUnsychronisedLyricsOrTextTranscription TypeSynchronisedLyricsOrText TypeComments TypeRelativeVolumeAdjustment TypeEqualisation TypeReverb TypeAttachedPicture TypeGeneralEncapsulatedObject TypePlayCounter TypePopularimeter TypeRecommendedBufferSize TypeEncryptedMetaFrame TypeAudioEncryption TypeLinkedInformation TypeiTunesCompilationFlag )
type InvolvedPeopleListFrame ¶
type InvolvedPeopleListFrame struct {
// contains filtered or unexported fields
}
func (InvolvedPeopleListFrame) PeopleList ¶
func (f InvolvedPeopleListFrame) PeopleList() []string
type ItunesCompilationFlagFrame ¶
type ItunesCompilationFlagFrame struct {
// contains filtered or unexported fields
}
func (ItunesCompilationFlagFrame) IsPartOfACompilation ¶
func (f ItunesCompilationFlagFrame) IsPartOfACompilation() bool
type MusicCDIdentifierFrame ¶
type MusicCDIdentifierFrame struct {
// contains filtered or unexported fields
}
func (MusicCDIdentifierFrame) CDTOC ¶
func (f MusicCDIdentifierFrame) CDTOC() []byte
type PictureType ¶
type PictureType int
const ( PictureTypeOther PictureType = iota PictureType32x32 PictureTypeOtherFileIcon PictureTypeCoverFront PictureTypeCoverBack PictureTypeLeafletPage PictureTypeMedia PictureTypeLeadArtist PictureTypeArtist PictureTypeConductor PictureTypeBandOrOrchestra PictureTypeComposer PictureTypeLyricist PictureTypeRecordingLocation PictureTypeDuringRecording PictureTypeDuringPerformance PictureTypeMovieOrVideoScreenCapture PictureTypeABrightColouredFish PictureTypeIllustration PictureTypeBandOrArtistLogotype PictureTypePublisherOrStudioLogotype )
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
Tag is ID3v2.2 tag reader.
func New ¶
func New(f io.ReadSeeker) (*Tag, error)
New will read file and return id3v2.2 tag reader.
func (Tag) AlbumArtists ¶
func (Tag) AttachedPictures ¶
func (tag Tag) AttachedPictures() []AttachedPictureFrame
func (Tag) TrackNumberAndPosition ¶
type TextInformationFrame ¶
type TextInformationFrame struct {
// contains filtered or unexported fields
}
func (TextInformationFrame) Text ¶
func (f TextInformationFrame) Text() string
type TimeStampFormat ¶
type TimeStampFormat byte
type URLLinkFrame ¶
type URLLinkFrame struct {
// contains filtered or unexported fields
}
func (URLLinkFrame) URL ¶
func (f URLLinkFrame) URL() string
type UniqueFileIdentifierFrame ¶
type UniqueFileIdentifierFrame struct {
// contains filtered or unexported fields
}
func (UniqueFileIdentifierFrame) Identifier ¶
func (f UniqueFileIdentifierFrame) Identifier() []byte
func (UniqueFileIdentifierFrame) OwnerIdentifier ¶
func (f UniqueFileIdentifierFrame) OwnerIdentifier() string
type UnknownFrame ¶
type UnknownFrame struct {
// contains filtered or unexported fields
}
func (UnknownFrame) Data ¶
func (f UnknownFrame) Data() []byte
type UnsynchronisedLyricsOrTextTranscriptionFrame ¶
type UnsynchronisedLyricsOrTextTranscriptionFrame struct {
// contains filtered or unexported fields
}
func (UnsynchronisedLyricsOrTextTranscriptionFrame) ContentDescriptor ¶
func (f UnsynchronisedLyricsOrTextTranscriptionFrame) ContentDescriptor() string
func (UnsynchronisedLyricsOrTextTranscriptionFrame) ID ¶
func (f UnsynchronisedLyricsOrTextTranscriptionFrame) ID() string
func (UnsynchronisedLyricsOrTextTranscriptionFrame) Language ¶
func (f UnsynchronisedLyricsOrTextTranscriptionFrame) Language() string
func (UnsynchronisedLyricsOrTextTranscriptionFrame) LyricsOrText ¶
func (f UnsynchronisedLyricsOrTextTranscriptionFrame) LyricsOrText() string
Click to show internal directories.
Click to hide internal directories.