id3v2

package module
v0.0.0-...-5bf3598 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2015 License: MIT Imports: 7 Imported by: 0

README

id3v2

id3v2 tag parser

Status

  • Partial support for v2.4.0
  • Partial support for v2.3.0
    • Text information frames (TIT1, TPE1, ..., and TXXX frames)
    • APIC frame

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttachedPictureFrame

type AttachedPictureFrame struct {
	MimeType    string
	PictureType uint8
	Description string
	PictureData []byte
}

type Flags

type Flags struct {
	Unsynchronisation     bool
	ExtendedHeader        bool
	ExperimentalIndicator bool
	FooterPresent         bool
}

type Frame

type Frame struct {
	FrameId     string
	Size        uint64
	StatusFlags FrameStatusFlags
	FormatFlags FrameFormatFlags
	Payload     []byte
}

func (*Frame) Read

func (f *Frame) Read(r io.Reader) error

4

type FrameFormatFlags

type FrameFormatFlags struct {
	GroupingIdentity    bool
	Compression         bool
	Encryption          bool
	Unsynchronisation   bool
	DataLengthIndicator bool
}

type FrameStatusFlags

type FrameStatusFlags struct {
	TagAlterPreservation  bool
	FileAlterPreservation bool
	ReadOnly              bool
}
type Header struct {
	Version Version
	Flags   Flags
	Size    uint64
}

func (*Header) Read

func (h *Header) Read(r io.Reader) error

type Tag

type Tag struct {
	Header         Header
	Frames         map[string]*Frame
	UserTextFrames []*UserTextFrame
}

func Read

func Read(r io.Reader) (*Tag, error)

func (*Tag) Album

func (t *Tag) Album() string

func (*Tag) AlbumArtist

func (t *Tag) AlbumArtist() string

func (*Tag) AlbumSortOrder

func (t *Tag) AlbumSortOrder() string

func (*Tag) Artist

func (t *Tag) Artist() string

func (*Tag) AttachedPicture

func (t *Tag) AttachedPicture() *AttachedPictureFrame

func (*Tag) BPM

func (t *Tag) BPM() string

func (*Tag) Composer

func (t *Tag) Composer() string

func (*Tag) Conductor

func (t *Tag) Conductor() string

func (*Tag) ContentGroup

func (t *Tag) ContentGroup() string

func (*Tag) ContentType

func (t *Tag) ContentType() string

func (*Tag) CopyrightMessage

func (t *Tag) CopyrightMessage() string

func (*Tag) Date

func (t *Tag) Date() string

id3v2.3.0 4.2.1

func (*Tag) EncodedBy

func (t *Tag) EncodedBy() string

func (*Tag) EncodingSettings

func (t *Tag) EncodingSettings() string

func (*Tag) EncodingTime

func (t *Tag) EncodingTime() string

func (*Tag) FileType

func (t *Tag) FileType() string

func (*Tag) ISRC

func (t *Tag) ISRC() string

func (*Tag) InitialKey

func (t *Tag) InitialKey() string

func (*Tag) InternetRadioStationName

func (t *Tag) InternetRadioStationName() string

func (*Tag) InternetRadioStationOwner

func (t *Tag) InternetRadioStationOwner() string

func (*Tag) InterpretedBy

func (t *Tag) InterpretedBy() string

func (*Tag) InvolvedPeople

func (t *Tag) InvolvedPeople() string

func (*Tag) Language

func (t *Tag) Language() string

func (*Tag) Length

func (t *Tag) Length() string

func (*Tag) Licensee

func (t *Tag) Licensee() string

func (*Tag) Lyricist

func (t *Tag) Lyricist() string

func (*Tag) MediaType

func (t *Tag) MediaType() string

func (*Tag) Mood

func (t *Tag) Mood() string

func (*Tag) MusicianCredits

func (t *Tag) MusicianCredits() string

func (*Tag) OriginalAlbum

func (t *Tag) OriginalAlbum() string

func (*Tag) OriginalArtist

func (t *Tag) OriginalArtist() string

func (*Tag) OriginalFilename

func (t *Tag) OriginalFilename() string

func (*Tag) OriginalLyricist

func (t *Tag) OriginalLyricist() string

func (*Tag) OriginalReleaseTime

func (t *Tag) OriginalReleaseTime() string

func (*Tag) OriginalReleaseYear

func (t *Tag) OriginalReleaseYear() string

func (*Tag) PartOfSet

func (t *Tag) PartOfSet() string

func (*Tag) PerformerSortOrder

func (t *Tag) PerformerSortOrder() string

func (*Tag) PlaylistDelay

func (t *Tag) PlaylistDelay() string

func (*Tag) ProducedNotice

func (t *Tag) ProducedNotice() string

func (*Tag) Publisher

func (t *Tag) Publisher() string

func (*Tag) Read

func (t *Tag) Read(r io.Reader) error

func (*Tag) RecordingTime

func (t *Tag) RecordingTime() string

func (*Tag) ReleaseTime

func (t *Tag) ReleaseTime() string

func (*Tag) SetSubtitle

func (t *Tag) SetSubtitle() string

func (*Tag) Size

func (t *Tag) Size() string

func (*Tag) Subtitle

func (t *Tag) Subtitle() string

func (*Tag) TaggingTime

func (t *Tag) TaggingTime() string

func (*Tag) Time

func (t *Tag) Time() string

func (*Tag) Title

func (t *Tag) Title() string

func (*Tag) TitleSortOrder

func (t *Tag) TitleSortOrder() string

func (*Tag) Track

func (t *Tag) Track() string

func (*Tag) Year

func (t *Tag) Year() string

type UserTextFrame

type UserTextFrame struct {
	*Frame
	Description string
	Value       string
}

type Version

type Version struct {
	Major    uint8
	Revision uint8
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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